Jump to content
  • 0
Sign in to follow this  
mybitch

How to apply this one to the new item_db.conf

Question

{	Id: 7608	AegisName: "Premium_Ticket"	Name: "Premium Ticket"	Type: 0	Buy: 20	Weight: 10	Script: <" if (#Premium==0){set #Premium, gettimetick(2) + 604800; announce "Thanks for using Premium Service! Kindly reconnect in-game to upgrade your account. Premium Service will not take effect unless you have relog back on the game!",bc_yellow|bc_self; }else{set #Premium, (#Premium > gettimetick(2)? #Premium : gettimetick(2)) + 604800; announce "Thank you for using Premium Service. Your Premium Time has been extended! Enjoy playing!",bc_yellow|bc_self; ">}, 
 
its not wroking after changing it. Is there something wrong with it?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

kindly check this 

"#"      - A permanent local account variable.           They are stored in the 'global_reg_value' table using type 2."##"     - A permanent global account variable stored by the login server.            They are stored in the 'global_reg_value' table, using type 1.            The only difference you will note from normal # variables is            when you have multiple char-servers connected to the same            login-server. The # variables are unique to each char-server,            while the ## variables are shared by all these char-servers.

and I think Item type must be usable..

	0	Healing item.	2	Usable item.

so it should be

-   Type: 0+   Type: 2

- = delete

+ = add

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.