Kudo Posted April 3, 2024 Group: Members Topic Count: 56 Topics Per Day: 0.01 Content Count: 140 Reputation: 0 Joined: 08/18/12 Last Seen: June 21, 2024 Share Posted April 3, 2024 (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 April 3, 2024 by Kudo Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 3, 2024 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 2 hours ago Share Posted April 3, 2024 (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 April 3, 2024 by Rynbef Misspellings Quote Link to comment Share on other sites More sharing options...
0 Kudo Posted April 3, 2024 Group: Members Topic Count: 56 Topics Per Day: 0.01 Content Count: 140 Reputation: 0 Joined: 08/18/12 Last Seen: June 21, 2024 Author Share Posted April 3, 2024 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) Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 3, 2024 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 2 hours ago Share Posted April 3, 2024 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~ Quote Link to comment Share on other sites More sharing options...
Question
Kudo
can i request a script function that when click a box the script will callfunc "Freebies";
Edited by Kudothe function contains the items that i need.. note(its not npc.)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.