Jump to content
  • 0

Q > Script help Stack of question need answer


utofaery

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

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??

screenHercules000.jpg

Edited by utofaery
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

3. luafiles514/luafiles/signboardlist.lub

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...