Any ideas are very welcome! I was trying to create my own "erasequest2" command but I didn't find a way to run sql there and get all the accountid:
/**
* erasequest2 <ID>{,<char_id>};
**/
BUILDIN_FUNC(erasequest){
map_session_data* sd;// list of all player I get from SELECT accountid from ragnarok.login:if(!script_charid2sd(3, sd))return SCRIPT_CMD_FAILURE;if(quest_delete(sd, script_getnum(st,2))==-1){
script_reportsrc(st);
script_reportfunc(st);}
pc_show_questinfo(sd);return SCRIPT_CMD_SUCCESS;}
Question
zeusc137
I know erasequest uses the information from the player that executed the erasequest, in other words the player that interacted with the NPC script.
What about my script like the one below, but that call erasequest for all chars from all login:
Any ideas are very welcome! I was trying to create my own "erasequest2" command but I didn't find a way to run sql there and get all the accountid:
Thanks in advance!
Edited by zeusc137my problem was solved
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.