Jump to content
  • 0

@alootid command of script


Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted (edited)

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
Posted


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;

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...