Jump to content

Recommended Posts

Posted (edited)

I have a question that may be seems silly but still, i will ask ;p

How players can get coupons?

I didnt add any way you have to add it manually. The code have an example you can take it from //setcoupon {category} . If you still need help on how you can add it you can ask for it or tell me when the player should get coupons   ;)

Edited by melron
Posted

I didnt add any way you have to add it manually. The code have an example you can take it from //setcoupon {category} . If you still need help on how you can add it you can ask for it or tell me when the player should get coupons   ;)

Is there any way of doing it achievements like? like achievements work, ex kill 100 monsters reward 1 silver coupon, kill 1 raid reward 1 gold, etc or if i want to make it with conditions, for example, if player get 100 pvps reward 1 coupon how i can do that?

Posted

Is there any way of doing it achievements like? like achievements work, ex kill 100 monsters reward 1 silver coupon, kill 1 raid reward 1 gold, etc or if i want to make it with conditions, for example, if player get 100 pvps reward 1 coupon how i can do that?

Both cases can be done.

I can do it tommorow because im not home again. But if you want it today for pvp case, you have to check the count of pvp's when the player increasing them and with some if statements (switch will be better) add then add your  desired coupon

Posted

Both cases can be done.

I can do it tommorow because im not home again. But if you want it today for pvp case, you have to check the count of pvp's when the player increasing them and with some if statements (switch will be better) add then add your  desired coupon

Alright mate, thank you very much for your help :)

Posted

Seems like you didnt add properly the user command (starts from line 606 in pb)

well i fixed the problem :D but when i try to download the htmls part the link is down files are missing... so we have to make our own htmls?

Posted (edited)

well i fixed the problem :D but when i try to download the htmls part the link is down files are missing... so we have to make our own htmls?

Link fixed. Thank you!

Edited by melron
Posted

The better is not to use user commands if it's planned to use the frequently, because they can't be added to macroses. The client checks the maximum indexer for user commands when trying to use them in macros. For IL it's 115 (if i'm not mistaken).

Posted

So how exactly this works? i just typed //setcoupon and it say `You dont have the access right to use this command but i have master accesss level 8

Posted

So how exactly this works? i just typed //setcoupon and it say `You dont have the access right to use this command but i have master accesss level 8

You have to add the command in xml/adminCommands.xml

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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