Jump to content
  • 0

how to change item script


waleed90

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  08/08/13
  • Last Seen:  

hello
i need to change Poring Coin script
when double click give 1 cash point
and can any one sell it
i found many topic but did not work

Edited by waleed90
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Can't you just change the item type and add a script??

7539,Poring_Coin,Poring Coin,3,0,,0,,,,,,,,,,,,,{},{},{}

remplace to

7539,Poring_Coin,Poring Coin,2,0,,0,,,,,,,,,,,,,{#CASHPOINTS++;},{},{}

And if you want to put restrictions:

 

 

Item Restrictions

Look on your db folder for a file called item_trade.txt and open it

Now, the pattern for a flag is:

Item ID, TradeMask, GM-Level Override
  • Item ID: the ID of your item.
  • TradeMask: Testrictions the item will have, such as being dropped, stored or traded. These values can be combined to achieve multiple effects.
1:Item can't be dropped
2:Item can't be traded (nor vended)
4:Item can only be traded with wedded partner
8:Item can't be sold to NPCs
16:Item can't be placed in the cart
32:Item can't be placed in the storage
64:Item can't be placed in the guild storage
  • GM-Level Override: This is the minimum GM level a player must have to avoid these restrictions.

Say thanks to the wiki  :lol:

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  08/08/13
  • Last Seen:  

thank you for reply
i change it but when i double click nothing happen

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

You forget the Class, Jobmask and Gender

0xFFFFFFFF,63,2
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Oh yeah xD you're right.

 

Wow it's been a long time since I added new items, I need to get back to that  :lol:

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  08/08/13
  • Last Seen:  

thank you now it's working

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