· 7 years ago · Dec 21, 2018, 11:34 AM
1me:
2so is it possible to make a universal callback system
3or is each individual based on script
4or can the framework be used on multiple scripts
5ideally we'd need like continuous callbacks providing information on which atk,str and def level accounts are, their xp/hour and how long they ran
6how does this sound
7
8him:
9 yeah i can do that
10it can be pretty universal too
11
12me:
13ok perfect
14http://master.fastpro.xyz/progress?&script=EI_fighter&runeaccount=mowingmoles@fastpro.xyz
15here's an example of how it would look
16
17him:
18The requested URL /progress was not found on this server.
19
20me:
21wait a sec
22I mean the IP is master.fastpro.xyz
23but
24would you be able to like code the framework and my partner just has to insert a valid url
25
26him:
27do you want like a MySQL connection
28or like a POST url
29
30me:
31It needs to generate continuous urls
32that we will connect with our system
33
34him:
35i think it would be easier
36if you gave me the ip to the mysql database
37the user/pass of an account for said database
38and a table setup IE accounts with the params id, username, atk, str, def, exprate, runtime
39so what i can then do
40is when the script is running
41every 30 seconds
42it will send the stats to the DB
43or if the username exists in it
44it will update it
45
46me:
47we'll do the table right
48so can you create some sort of framework for this
49
50him:
51with URLs it would be impossible
52because URLs means there needs to be a .php script on the webserver
53to get the POST requests
54
55me:
56well so is it logical to assume that you can make the .php script without access to server(edited)
57I'm saying this because my partner is sleeping and I don't have access to the server
58
59him:
60i hate writing php
61but what i can do is in the script make a MySQL connection that inserts/updates the table and inserts the stats
62URLs or URI is usually like what beginners do
63URI is not secure because anyone with the url can then insert
64
65me:
66Is there any reason you'd consider Mysql superior?
67besides security
68
69him:
70its faster, prevents injection, and i can do it all without multiple php scripts
71
72me:
73so cheaper as well?
74do you see any honest downside to it
75
76him:
77downside to php scripts?
78
79me:
80url vs mysql
81downside to mysql
82
83him:
84id use mysql
85downside to mysql is usually means you need an additional driver
86driver == library
87but its like 20 kb
88so there really is no downside
89url i would need to make the Java side + the php scripts
90
91me:
92library as in?
93
94him:
95MySQL has a .jar driver
96
97me:
98on mysql servr?
99ok
100
101him:
102just like dreambot has a client.jar for the api calls
103so the script would be like
10430-40kb big
105which is really nothing
106
107me:
108I suppose that won't really cause any problems
109
110him:
111i think its like 11kb atm
112
113me:
114it won't make the script more cpu intensive I hope
115
116him:
117nope not at all
118php scripts would tho
119
120me:
121interesting.
122
123him:
124as it need to create an HTTP object
125then parse it
126
127me:
128let's go with mysql if same tables can be used on our end to interprete values
129
130him:
131legit same tables
132
133me:
134 not a single difference?
135
136him:
137nope