tele to x,y location script need hlp

11/23/2009 13:12 ludi123456#1
This is not release. It works with 2moons client, nebulars 1.5 bypass and instantdeaths global unpacked 32.87.3
It is made from exclusive hack(tele to 0,0) by some modification.


I wanna make this a bit simpler and just 1 script that will teleport u to location u saved after u activate it.


So im trying to get this tele to x,y (location u specified) scripts to work little better
maybe i should go CE forum for this but im hoping u guys can help too.



this script teleports u anywhere on x or first coordinate

1st script

[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)
label(exit)

00603E3B:
jmp newmem
returnhere:

newmem:

mov ecx,x_location
mov ecx,[ecx]
//je originalcode
mov [eax+08],ecx


originalcode:
mov ecx,[eax]
mov edx,[eax+04]
exit:
jmp returnhere

[DISABLE]
dealloc(newmem)
00603E3B:
mov ecx,[eax]
mov edx,[eax+04]




this 2nd script does same thing on y or 2nd coordinate


2nd script


[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)
label(exit)

00603E3B:
jmp newmem
returnhere:

newmem:

mov edx,y_location
mov edx,[edx]
//je originalcode
mov [eax+0c],edx


originalcode:
mov ecx,[eax]
mov edx,[eax+04]
exit:
jmp returnhere

[DISABLE]
dealloc(newmem)
00603E3B:
mov ecx,[eax]
mov edx,[eax+04]




u also need to have defined x_location and y_location

3rd script

[ENABLE]
alloc(newmem,64)
label(x_location)
label(y_location)
registersymbol(x_location)
registersymbol(y_location)

newmem:

x_location:
dd 00000000

y_location:
dd 00000000

[DISABLE]
dealloc(newmem)




now u can change x and y here(3rd script (where its set to 0,0) by changing 0,0 to wanted coord.) or u can add adress manually(float not 4 byte) "x_location" and "Y_location" after activativating this 3rd script and simply setting value u want in those new addresses (x_location and y_location).


Now it works as it is.
Once u have all 3 scripts.

U enter x and y u want to tele to in 3rd script,
enable 3rd script,
then u enable 1st script(u re teleported to x location instantly) disable it,
then enable 2nd script(u re teled to y location u specified instantly)and disable it.




So the problem is?

Like i said i d like some hlp or directions how to make it in 1 script.

Setting location in 1 of those scripts or both isnt problem. Problem is if i merge those 2 scripts they work but they get bugged (they work little but soon they tele u to other location from 1 u specified or dont tele u at all).


this is how i tried and it doesnt work


[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)
label(exit)

00603E3B:
jmp newmem
returnhere:

newmem:

mov ecx,x_location
mov ecx,[ecx]
//je originalcode
mov [eax+08],ecx

mov edx,y_location
mov edx,[edx]
//je originalcode
mov [eax+0c],edx


originalcode:
mov ecx,[eax]
mov edx,[eax+04]
exit:
jmp returnhere

[DISABLE]
dealloc(newmem)
00603E3B:
mov ecx,[eax]
mov edx,[eax+04]





Using 1 and disableing it, then using other and disabling it works every time. So i want to make it in script so tht it executes them 1 by 1 and restoring the original code to its def value in between.

Maybe this is more question for CE forum but im hoping i might get some hlp here too.


btw it works even with dead char teles u re dead body to whatever location on map u want.

Though i dont rlly see the point of tht. Teleporting u re dead body wont revive u
but it can save a seg trouble of comming to u.

Example:
dead char: any segg here for rez?
Segg: yea where are u at?
dead char: doesnt matter jst tell me Where U are.
Segg: how can u come to me if u re dead and u need rez?
Dead char: leave tht to me :p
11/23/2009 14:37 EliteDKTrader#2
I'm going to look into it and I will tell you if I will fix your scripts into single one.
11/23/2009 18:55 ludi123456#3
Yes no argue there i already said to andrew seul i did use part of code from elusive hack. 1 part is changed. But still credits go to u. I m only trying to make this code work. To tele from any to any location. I didnt post this as a release i m jst trying to make it work.

u re code is :

mov ecx,x_location
mov ecx,[ecx]
cmp ecx,0
//je originalcode
mov [eax],ecx

mov ecx,y_location
mov ecx,[ecx]
cmp ecx,0
//je originalcode
mov [eax+04],ecx

mov ecx,z_location
mov ecx,[ecx]
cmp ecx,0
//je originalcode
mov [eax+08],ecx


originalcode:
mov ecx,[eax]
mov edx,[eax+04]
exit:
jmp returnhere


mine is:

mov ecx,x_location
mov ecx,[ecx]
//je originalcode
mov [eax+08],ecx

mov edx,y_location
mov edx,[edx]
//je originalcode
mov [eax+0c],edx


first half is exactly same as urs


Idk if u re hack can tele to any location but thats what i m trying to achive.

Anyways i made some "any" to "crespo dung" script if u re in crespo map ofc. Also "from dung" or any other location to "Cooper" npc(for repoting etc).

to dung script

[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)
label(originalcode2)
label(exit)
label(x_location)
label(y_location)
registersymbol(x_location)
registersymbol(y_location)

00603E3B:
jmp newmem
returnhere:

newmem:

mov ecx,x_location
mov ecx,[ecx]
//je originalcode
mov [eax+08],ecx


originalcode:
mov ecx,[eax]
mov edx,[eax+04]

mov edx,y_location
mov edx,[edx]
//je originalcode
mov [eax+0c],edx

originalcode2:
mov ecx,[eax]
mov edx,[eax+04]

exit:
jmp returnhere

x_location:
dd 429E0000

y_location:
dd 43ED0000

[DISABLE]
dealloc(newmem)
00603E3B:
mov ecx,[eax]
mov edx,[eax+04]









to cooper(for poting)


[ENABLE]
alloc(newmem,1024)
label(returnhere)
label(originalcode)
label(originalcode2)
label(exit)
label(x_location)
label(y_location)
registersymbol(x_location)
registersymbol(y_location)

00603E3B:
jmp newmem
returnhere:

newmem:

mov ecx,x_location
mov ecx,[ecx]
//je originalcode
mov [eax+08],ecx


originalcode:
mov ecx,[eax]
mov edx,[eax+04]

mov edx,y_location
mov edx,[edx]
//je originalcode
mov [eax+0c],edx

originalcode2:
mov ecx,[eax]
mov edx,[eax+04]

exit:
jmp returnhere

x_location:
dd 43070000

y_location:
dd 43818000

[DISABLE]
dealloc(newmem)
00603E3B:
mov ecx,[eax]
mov edx,[eax+04]




They arent the best but try them out and let me know if it works ok. Location can be changed to any place jst need coords of tht place.
For example if u dont like runing from python to 90 dung u can put this 43B50000 for x(x_location: ) and this 43808000 for y(y_location: ). Leave dd jst replace numbers.



Also in 3rd sentance of my first post i made a spelling mistake i wrote:

It is made from exclusive hack(tele to 0,0)

It should have said elusive hack. I m sorry for this mistake. I had no intention to take credits for L.e.v.i.a.t.h.a.n Elusive hack.
11/23/2009 20:33 bottomy#4
Quote:
Originally Posted by ludi123456 View Post
Using 1 and disableing it, then using other and disabling it works every time. So i want to make it in script so tht it executes them 1 by 1 and restoring the original code to its def value in between.

Maybe this is more question for CE forum but im hoping i might get some hlp here too.


btw it works even with dead char teles u re dead body to whatever location on map u want.

Though i dont rlly see the point of tht. Teleporting u re dead body wont revive u
but it can save a seg trouble of comming to u.

Example:
dead char: any segg here for rez?
Segg: yea where are u at?
dead char: doesnt matter jst tell me Where U are.
Segg: how can u come to me if u re dead and u need rez?
Dead char: leave tht to me :p

I don't really understand what you're trying to achieve, but anyways if you're trying to make it so you can move when you're dead, you can't. It's like if you die and use gm mode mapclick, in your screen you appear as if you're moving around but you really aren't. If someone resurrects you'll just 'fly' towards the position you died.
11/24/2009 22:05 ludi123456#5
To crespo dung script

[ENABLE]
alloc(newmem,64)
label(returnhere)
label(exit)
label(x_location)
label(y_location)

00603E3B:
jmp newmem
returnhere:

newmem:

mov ecx,[x_location]
mov [eax+08],ecx
mov ecx,[eax]
mov edx,[y_location]
mov [eax+0c],edx
mov edx,[eax+04]

exit:
jmp returnhere

x_location:
dd 429E0000
y_location:
dd 43ED0000

[DISABLE]
dealloc(newmem)
00603E3B:
mov ecx,[eax]
mov edx,[eax+04]



To Cooper(NPC)

[ENABLE]
alloc(newmem,64)
label(returnhere)
label(exit)
label(x_location)
label(y_location)

00603E3B:
jmp newmem
returnhere:

newmem:

mov ecx,[x_location]
mov [eax+08],ecx
mov ecx,[eax]
mov edx,[y_location]
mov [eax+0c],edx
mov edx,[eax+04]

exit:
jmp returnhere

x_location:
dd 43070000
y_location:
dd 43818000

[DISABLE]
dealloc(newmem)
00603E3B:
mov ecx,[eax]
mov edx,[eax+04]



Once again credit user, maker of original script which made this possible, L.e.v.i.a.t.h.a.n and hes Elusive hack [Only registered and activated users can see links. Click Here To Register...]




As u can see difference between those 2 scripts i jst posted here is in blue coloured x and y addresses.
Thats all u need to change to make script teleport u to location U want(i choosed entrance of crespo dung and cooper npc)


I made code little shorter and it seems to work fine. I have tested it in crespo dung too. Works no dc used it over 20 times in 1 run but wouldnt recomend using it. With u some strange wall teleports too but no dc will occured and u can move regardless of tht wierd graphical glitch. The wall is clickable too so it cause some problems when trying to move levers etc. I dont recomend using it in dung but here are adresses if u want to try it.

its best to make new script for every tele so u dont have to edit script jst click on them in the right order.

362 217 1st door 43B50000 43590000

346 258 1st lever 43AD0000 43810000

351 291 2nd lever 43AF8000 43918000

350 314 3rd lever 43AF0000 439D0000

305 328 will of thief 43988000 43A40000

230 348 poison coff 43660000 43AE0000
230 305 poison coff 43660000 43988000

208 437 4th lever 43500000 43DA8000

146 274 coffins(3) 43120000 43890000

250 197 thing tht teles u to 4 mob 437A0000 43450000

252 238 5th lever after doing 4 mob 437C0000 436E0000

291 80 gate before last boss 43918000 42A00000

223 91 argate 435F0000 42B60000

180 80 end 43340000 42A00000



From anywhere in python to 90 dung tele
43B50000
43808000



@bottomy

hi thx for info but segg and dead body it jst came to my mind and i thought it would be funny.
As for what im i tring to achive. Point of this script is to teleport u. So u can move faster to where ever it is u wanna go to. That is what i m trying to achive.