utofaery Posted January 18, 2019 Posted January 18, 2019 (edited) Q.1 Help me make a script to take item from storage or from cart to player and stop moving item to player before overweight 90% Q.2 What should this be correctly done? or should be changed to? What I need is "getmapinfo" to rathena command functioning by get what player or npc are at and return map name etc .@warpName$ = getmapinfo(MAPINFO_NAME); // //pvp_n_3-4 .@nextwarp1$ = substr( .@warpName$ , 0, 5 ); //pvp_n_ .@nextwarp2$ = substr( .@warpName$ , 6, 6 ); //3 .@nextwarp3$ = substr( .@warpName$ , 7, 8 ); //-4 Q.3 Help me to remove the "Eden Warper" and the "Guild storage" in the attached image below. Q.4 Does this correctly work on attached player if use inside npc? Note: that attached player is not Creator / Genetic Spoiler atcommand("@useskill "+"244 "+ "1 "+strcharinfo(0) );//AM_REST atcommand("@useskill AM_CALLHOMUN"); atcommand("@useskill AM_RESURRECTHOMUN"); Q.5 How to kick attached player from script?? Edited January 18, 2019 by utofaery Quote
0 LearningRO Posted January 18, 2019 Posted January 18, 2019 3. luafiles514/luafiles/signboardlist.lub Quote
0 crazyarashi Posted January 19, 2019 Posted January 19, 2019 1. Maybe this can help with your idea. 2. As for this you can get the current map of your character via strcharinfo(3) and for npc strnpcinfo(4) 3. The answer is above. 4. As for 4 I believe that is not rathena scripting you should use "useatcmd" script for that. 5. Simply use detachrid Quote
0 utofaery Posted January 19, 2019 Author Posted January 19, 2019 3 hours ago, crazyarashi said: 1. Maybe this can help with your idea. 2. As for this you can get the current map of your character via strcharinfo(3) and for npc strnpcinfo(4) 4. As for 4 I believe that is not rathena scripting you should use "useatcmd" script for that. 1. I mean randomly taking items out until player reaches carryweight 90%. would there be something like that not restocking since that isn't what I wanted that is something for automation and botter loved. 2. Could you give example how it should be structured? since commandscript document has not that entry. map server spit this error Spoiler script error on npc/xNPC/TRIAL01.txt line 4 parse_line: expect command, missing function name or calling undeclared func tion .@warpName$ = getmapinfo('M'APINFO_NAME); // //pvp_n_3-4 for this line of code Spoiler .@warpName$ = getmapinfo(MAPINFO_NAME); // //pvp_n_3-4 Quote
Question
utofaery
Q.1 Help me make a script to take item from storage or from cart to player and stop moving item to player before overweight 90%
Q.2 What should this be correctly done? or should be changed to?
What I need is "getmapinfo" to rathena command
functioning by get what player or npc are at and return map name etc
.@warpName$ = getmapinfo(MAPINFO_NAME); // //pvp_n_3-4
.@nextwarp1$ = substr( .@warpName$ , 0, 5 ); //pvp_n_
.@nextwarp2$ = substr( .@warpName$ , 6, 6 ); //3
.@nextwarp3$ = substr( .@warpName$ , 7, 8 ); //-4
Q.3 Help me to remove the "Eden Warper" and the "Guild storage" in the attached image below.
Q.4 Does this correctly work on attached player if use inside npc?
Note: that attached player is not Creator / Genetic
atcommand("@useskill "+"244 "+ "1 "+strcharinfo(0) );//AM_REST
atcommand("@useskill AM_CALLHOMUN");
atcommand("@useskill AM_RESURRECTHOMUN");
Q.5 How to kick attached player from script??
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.