Jump to content
  • 0

Question

Posted (edited)

can i request a script function that when click a box the script will callfunc "Freebies";
the function contains the items that i need.. note(its not npc.)

Edited by Kudo

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

This should be what you are looking for. I've script it on my mobile phone for you. U can call the function with parameters.

callfunc "Freebie(1)"; //then the user get a random freebie item from the list below or

callfunc "Freebie(0)"; //the user will get the next freebie on the list below. If out of the array he will get the first one. U can set if this is Char or Acc bounded.

And an local player (bc_self) announcement that he receive a freebie "amount x item name" will be announced too.

FreebieFunction.txt

 

Rynbef~

Edited by Rynbef
Misspellings
  • 0
Posted
50 minutes ago, Rynbef said:

This should be what you are looking for. I've script it on my mobile phone for you. U can call the function with parameters.

callfunc "Freebie(1)"; //then the user get a random freebie item from the list below or

callfunc "Freebie(0)"; //the user will get the next freebie on the list below. If out of the array he will get the first one. U can set if this is Char or Acc bounded.

And an local player (bc_self) announcement that he receive a freebie "amount x item name" will be announced too.

FreebieFunction.txt 1.26 kB · 1 download

 

Rynbef~

sorry sir but i just need the exact item what i want to give, when i click the box and it will call function.. not the random one. and please can you add some checking when account already opened the box 
he / she can no longer open another 1 for abuse prevention. (account based)

  • 0
Posted

if(!#Freebie){getitem 969,1; set #Freebie,1;}

That's everything u need. Next time write a better informative request then everyone can understand what ur looking for and don't waste time.

 

Rynbef~

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