I said i tried to do it with pc.warp_local but it doesnt work in dungeons, so i asked you if there is something like d.warp_local() and if not if anyone of you could code it for the source.
Hi com,
I'm here to ask for a new function that is working like pc.warp_local() but in a dungeon, and to a single player not to the whole group.
The effect should be like a /go. If I use pc.warp_local() it kicks the player out of the dungeon...
If there is any other way how to fix this without a new function you can also tell me how to.
I tried : pc.warp_local(d.get_ma_index(), X, Y ) but it gave me the error : "53003 no valid mapindex"
I hope someone can help me
MFG Castro
Correct, try with this method and if it returns error then you will know the reason.
I tried it like this:
When login with pc.get_map_index() == 352 begin
chat("DEBUG: logged warp")
end
and it worked.
Now it seems to me that global vars are unique for every core, maybe i have to use MYSQL for the table then, but thats fine. I will try it later and post the results here
Anyways, thanks to the guys who helped me out!
MFG Castro
#closerequest
Theres no use to post the quest here as it works perfectly. The problem is about the different Channels.
If you port from Ch99 to this map ( CH99 ) it works. If you port from CH1 to this map it doesnt.
I did both rleoad q and full reboot..
#Edit:
Can it be the problem that I use global Variables? Are they unique for Each Channel?
Hi Guys I have a problem with a quest im currently working on, or better said the part it should execute after getting ported to a map.
With this Code;
pc.warp(x,y) -- Warps to map with mapindex == 352
when login with pc.get_map_index() == 352 begin
It works fine as long as you were on Channel99 before porting. When you try to port from Channel1 to this map (ch99 ) it doesnt start the code.
Does anyone know why this is the case?
sincerely Castro
SOLUTION:
The solution is that global vars are unique for every Core. You have to use MYSQL to make them accessable by every core without getting errors like I did.