Issue information

Issue ID
#4941
Status
Fixed
Severity
None
Started
Hercules Elf Bot
May 31, 2011 9:26
Last Post
Hercules Elf Bot
May 31, 2011 9:26
Confirmation
N/A

Hercules Elf Bot - May 31, 2011 9:26

Originally posted by [b]~AnnieRuru~[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4941

this should happens in all revision since I started learning to make scripts <- so many years already
nobody has report this because developers are never interested in fixing script commands ...
but now we all know there's one developer who can depends on lol

this topic has reminded me
http://www.eathena.ws/board/index.php?s=&a...t&p=1496892

I'll describe this in detail
CODE
-    script    dfafdsfs    -1,{
OnAgitEnd:
    warpguild "prontera", 156,188, getcastledata( "prtg_cas01", 1 );
    end;
}
warp every guild member that had conquered Kriemhild castle to "prontera",156,188
but the server print out this error
CODE
[Error]: script_rid2sd: fatal error ! player not attached!
[Debug]: Function: warpguild (4 parameters):
[Debug]: Data: string value="prontera"
[Debug]: Data: number value=156
[Debug]: Data: number value=188
[Debug]: Data: number value=0
[Debug]: Source (NPC): dfafdsfs (invisible/not on a map)

and WE have been using this trick for YEARS
CODE
-    script    dfafdsfs    -1,{
OnAgitEnd:
    query_sql "select account_id from `char` where online = 1 limit 1", .@aid;
    attachrid .@aid; // randomly find someone to attach .... ROFL
    warpguild "prontera", 156,188, getcastledata( "prtg_cas01", 1 );
    end;
}
yes it sounds very stupid
I guess now its time to change about this already

Note : not *maprespawnguildid command because this command only warp them to save point
I need a command to warp to a specific point, not their own respective save point


================================================

On a side note, warpparty command also needs RID attach
but this is not so important ...
because from my experience, I usually use warpparty command
1. when party register, warpparty into the map/instance (the one talked to npc is the RID)
2. inside OnMyMobDead monster's label for warping them into next round (the one killed monster has the RID)
3. and use *mapwarp if they times up (mapwarp doesn't need RID)
so I never encounter need to find someone to attach for warpparty command

though, might as well fix both of them


EDIT: oh....
http://www.eathena.ws/board/index.php?auto...mp;showbug=4359
I didn't notice that one
well fix warpguild here, fix warpparty there then xD

This post has been edited by ~AnnieRuru~: May 31 2011, 02:51 AM