Jump to content
  • 0

Script Function


Kudo

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  132
  • Reputation:   0
  • Joined:  08/18/12
  • Last Seen:  

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   118
  • Joined:  05/23/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  132
  • Reputation:   0
  • Joined:  08/18/12
  • Last Seen:  

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)

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   118
  • Joined:  05/23/12
  • Last Seen:  

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~

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