Hi all,
I have some idead about create a bot for World Quest which can use teleport services. A lot of time wasted by flying will be saved.
My hope: You go home from work, stop bot from killing mob, start WQ, go for bath or dinner, when you back your WQ is done, you can continue killing mob or go for some Instance (dungeon).
But there is problem. I don't know how elementclient.exe handle teleport point.
Func useTeleport($toPoint, $pid) ;//Sends a packet to use teleport services ;// $toPoint is where to go , runing from ;//0 to max point local $packet, $packetSize
25533 ; is ID of npc from pwdb, or you can found it in mob\npc\pet array offset 0x120 (PW Genesis) or 0x124 (PW Descent)
7901 ; is id of land in world_targets.txt.
Kinh Đào Thành ; is name of land in world_targets.txt.
2681.93 ;pos x z y . When you teleport to this land, you will be here. use to check teleport is success or not.
241.793
-4268.359
Di chuyển Hồng Oanh ;name of npc teleport
26177 ;id of teleport service. You can found other infomation in table 50 of elements.data
13 ;max number of point that this teleporter can get you to
7102 ;$toPoin=0 will get you to that land, id from world_targets.txt
7101 ;$toPoin=1 will get you to that land...below is similar with $toPoint =2,3,4 to maxpoint-1
7902
7801
7802
3501
2101
5201
3801
3802
3803
6802
7001
the idea is nice.
i dont know how to get all teleporter points, then trying numbers up.
maybe there is a offset to get the number of a selected teleporter or a place in memory were all points stored.
for the bot i think u need some more info, like teleport sucesfull or simply use some wait time.
store teleporter x,y,z and npc id to travel and know were u are actual.
built up a chain for traveling, since some towns cant reach directly.
but i dont understand the question ?
u looking for more teleporter points or just one who can program this ?
the idea is nice.
i dont know how to get all teleporter points, then trying numbers up. maybe there is a offset to get the number of a selected teleporter or a place in memory were all points stored.
but i dont understand the question ?
u looking for more teleporter points or just one who can program this ?
The red section is what i want to find. A relation between $toPoint and location, then based on it, i can build a library. One NPC from library contain : region, teleporter location, where i can teleport to from her, what $toPoint equal to those location.
If i can't find it, there is another way.
I must go to every teleporter and get what $toPoint mean.
Then i must build that library and update it when PW update....
All manually !
Think as a coder, i don't like this way, i like to make program that do those repeated work for us.
And one more thing: it's a huge work that i don't think i have enough patience to complete
Quote:
for the bot i think u need some more info, like teleport sucesfull or simply use some wait time.
store teleporter x,y,z and npc id to travel and know were u are actual.
I can use character (x y z) to check teleport's success. Or there is a pointer store what region you are stand at. I found it before but don't have it now. I think i can find it again
Quote:
"built up a chain for traveling, since some towns cant reach directly"
It is not hard as you think. After have library, we can use dijkstra algorithm to find route, right?
There is no point in using A* or Dijkstra's Algorithm.
For you to know the destination, you would have to find the pointer that your client is using to figure out which path you have to take to reach your destination from your source; which is already the 'shortest' and fastest route.
Func useSkill($skillId, $targetId, $pid)
;//uses the specified skill on the target. Pass your own
;//Id if you wish to use buffs. When teleporting targetId
;//is the targeted city.
local $packet, $packetSize
This is useskill function, in this function i think "teleporting" mean use skill go to town (the skill have 1 hour cooldown).
Quote:
Originally Posted by Sᴡoosh
I'd guess he sniffed it himself?
Quote:
Originally Posted by amineurin
the description look more like interest07 i think
Yes, I sniffed and wrote it, it's working fine.
I'm using sendpacket function provide by interest07 so i wrote it like another function. Just for better look or for sharing here
Thanks to amineurin and Sᴡoosh, i'm coding a program to extract teleport data from table 50 of elements.data
And to APwI :Thanks for your advice, but after trying to find route in client, the only thing i found is that pointer:
PHP Code:
realbaseadd+0x1C+0x18+0x8+0x8C+0x8+0x1F8+0xF0
Open teleport service map and click in somewhere of the map (not click in teleport point).
This pointer will store what city your mouse are pointing in. By number in world_targets.txt
All my trying to find pointer store "shortest route" had no effect
Without wanting to spit in your soup or anything :
For me, personally, doing WQ with the help of teleporters is not worth the additonal work. Back when I played and did WQ, I would have bot run while I was outside contaminating my neighborhood with newspapers. It didn't matter to me really how fast it went
You sure it's worth the pain? Though, you have come this far, might as well end it
Without wanting to spit in your soup or anything :
For me, personally, doing WQ with the help of teleporters is not worth the additonal work. Back when I played and did WQ, I would have bot run while I was outside contaminating my neighborhood with newspapers. It didn't matter to me really how fast it went
You sure it's worth the pain? Though, you have come this far, might as well end it
Cheers
if complete, this will be very effective
Example: Auto killing mob, then new day coming, bot automatic stop killing mob, find a way to town, teleport to dragon town, doing daily quest like crazy stone (hope this name is right) or WQ. Then back "to work" ith mob.
Beside, it's a passion of digging stuff in game. I like it (except sometimes it made me crazy when can't find something )
hm i like more wen a bot dont lvl up and all this quest functions are in 1 bot only.
since the day i used a bot, i only farm mats to sell high in the city and dont want to level out the mob range.
but grinding bring not much money, merchant stuff makes much more coins.
Packet siffer. Cannot send packet back to server [DC] 08/06/2011 - Atlantica Online - 1 Replies hey guys i wounder how exactly i must send back packets to server ...
I captured various of packets walking , attacking, box opening ones. But if i later send them back to server , server just dc me..
Some one tryed?
Play sound via Packet Send?? [Question String Packet] 07/14/2010 - CO2 Private Server - 5 Replies Yow im trying to figure out why i cant play music with the string packet
What im doin is;
MyChar.Client.SendPacket(Game.Packet.String(MyCha r.UID, 20, Splitter));
My Packet is:
public byte String(long CharId, byte Type, string name)
[Question] What Packet to send? 08/05/2009 - CO2 Private Server - 6 Replies Hello.
I'm in trouble because I don't know what packet to send when I have created a Character.
I tried to send this MessagePacket:
The message appears but don't bring you to the main menu of the client to log into my server