Jump to content
  • 0

@alootid command of script


Yoona

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

I just want to know how to add an automatic player command..

 

so it would be like this, First i will talk to the NPC " Gold Room NPC " Blah blah blah okay you can warp now. but before the warp the @alootid command will be trigger with a specific item...

 

 

 

    Here's my script :

mes "[Treasurer]";
mes "Alright I will now send you to the Treasure Room, Take Care!.";
next;

set Zeny,Zeny-1000000;
warp "ordeal_2-2",156,155;
emotion 21;
Edited by Yoona
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

Oninit:

+    setarray .lootidarray[0],501,502,503;
+    .size = getarraysize(.lootidarray);
end;

and

 

mes "[Treasurer]";
mes "Alright I will now send you to the Treasure Room, Take Care!.";
next;

set Zeny,Zeny-1000000;

+atcommand "@alootid reset";
+for ( .@i = 0; .@i < .size; .@i++ )
+    atcommand "@alootid +"+.lootidarray[.@i];

warp "ordeal_2-2",156,155;
emotion 21;
Edited by QQfoolsorellina
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  01/29/13
  • Last Seen:  


mes "[Treasurer]";

mes "Alright I will now send you to the Treasure Room, Take Care!.";

next;

set Zeny,Zeny-1000000;

atcommand "@alootid <type>";

warp "ordeal_2-2",156,155;

emotion 21;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

mes "[Treasurer]";
mes "Alright I will now send you to the Treasure Room, Take Care!.";
next;

set Zeny,Zeny-1000000;
atcommand "@alootid <type>";
warp "ordeal_2-2",156,155;
emotion 21;

 

what you did is to trigger only the alootid command, not with a specific item on it..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

@QQfoolsorellina Thanks for the reply, i will try it now..

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