Jump to content
  • 0

Request Script: Promo Codes NPC..


pointro

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  09/21/12
  • Last Seen:  

What script does??.. Admin will add a promo codes inside mySQL DB or by a PHP script (example promo code: pr100812a001). and when the player talk to the NPC and put the promo codes they will have a chance to get a random item.. if player already used the promo codes, the npc will say that the code is already used and the status of promo code inside the DB will update to "0" or "used"..

If the player gets a rare item, the NPC will announce "Congratulations to "+PlayerName+" For getting "+RareItemName+" at Promo Girl NPC!"

-Rewards are not in chance but only in random..

-Admin can set the validity of promo codes if validity is met, promo codes status will be used...

-Validity is set to minutes..

NPC Name: Promo Girl

DB Name: promo_girl

My SQL Tables:

-promocode

-status

-validity

(Optional)

PHP Script:

-Login to prevent abuse and hacking..(Password is set by me)

-Show all promo codes status.

-Add Promo Codes

-Delete Promo Codes

-Edit Promo Codes

I am also trying to modify this script simillar to what i want(http://rathena.org/board/topic/63282-promotional-code-npc/)

Well, my idea is like releasing Promo Codes every week so it will be easy for me to add codes. which players need to race for the promo codes!

if you have other ideas or suggestions to help me, i will highly appreciate it.

hope you can help me with this script :) Thank you!

Edit:

is it possible to separate rare items to normal items array but still they can be claimed in the NPC??

setarray .@NormalItems[0],607,608,512;
setarray .@NormalAmounts[0],1,2,3;


setarray .@RareItems[0],607,608,512;
setarray .@RareAmounts[0],1,2,3;

Is it possible??

I think this NPC is the best to edit this, but i don't know where to start XD

http://rathena.org/board/topic/63332-coupon-npc-112/

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

Can a promo code be used multiple times (different players?) or is it one time use only regardless of who used it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

something similiar exists to this which I did.

http://rathena.org/board/topic/63332-coupon-npc-112/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

"Well, my idea is like releasing Promo Codes every week so it will be easy for me to add codes. which players need to race for the promo codes!"

So I'm assuming codes can only be used 1x by 1 player (once used, it's used...)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

my script generates codes, if a code is used it's gone.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  09/21/12
  • Last Seen:  

my script generates codes, if a code is used it's gone.

yes, it is like your script but the prizes will be random that can be set by admin..

like this:

setarray .@Items[0],607,608,512;
setarray .@Amounts[0],1,2,3;

Can a promo code be used multiple times (different players?) or is it one time use only regardless of who used it?

promo Codes can only be used once, and if already used, it will disappear..

Hope you can help me :))

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