Jump to content
  • 1
chadness

[Solved] Enchanced itemshower

Question

hello i would like to ask regarding about itemshower script the normal players can also use the commands how can i set this for only gm 99 thanks
 

Quote

-    script     Sample     -1,{
OnInit:
    set .amount, 50; // amount of item to shower
    setarray .ItemID,677,12986,12221,12216,12215;
    .Size = getarraysize(.ItemID);

    bindatcmd "shower",strnpcinfo(3)+"::OnShower";
end;

    OnShower:

        getmapxy [email protected]$, [email protected], [email protected], BL_PC;
        freeloop(1);
        while ( .count < .amount ) {
            do {
                [email protected]_diff = [email protected] + rand(-15,15);
                [email protected]_diff = [email protected] + rand(-15,15);
            } while (!checkcell([email protected]$,[email protected],[email protected],cell_chkpass));
        makeitem .ItemID[rand(.Size)],1,[email protected]$,[email protected]_diff,[email protected]_diff;   // <<< im stuck on this
        set .count, .count + 1;
    }
    set .count, 0;
end;
}

 

Edited by chadness
solved
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
2 hours ago, chadness said:

can i set this for only gm 99

bindatcmd "shower",strnpcinfo(3)+"::OnShower", 99;
Edited by Emistry
  • Upvote 1
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.