Jump to content
  • 0

Help Cash Shop NPC


kukas9

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   2
  • Joined:  08/30/18
  • Last Seen:  

Hello everyone, I'm breaking my head and almost giving up doing a npc of cash, following:
rathena already has its own cash NPCs, but how can I add cash to the "player" buy? I saw that it uses the variable "cashshop" according to the link ai, but where does it search in the database that it has 0 cash? how could I change the search function if the player / account has the amount of cash, i created a column in the "login" table called rops, I used notepad ++ to fetch the cashshop variable in all rathena emulator files, I would like it to search for SQL

https://github.com/rathena/rathena/blob/master/npc/re/merchants/cash_trader-idRO.txt

Client 2018-05-31 RagexeRE RENEWAL

Edited by kukas9
correct
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

Since trunk r12264 you can alternatively use "cashshop" in place of "shop"
to use the Cash Shop interface, allowing you to buy items with special points
(Currently stored as account vars in global_reg #CASHPOINTS and #KAFRAPOINTS.)
This type of shop will not allow you to sell items at it, you may only
purchase items here. The layout used to define sale items still count, and
"<price>" refers to how many points will be spent purchasing the them.

Is this what you looking for ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   2
  • Joined:  08/30/18
  • Last Seen:  

1 hour ago, NakedWolf said:

Since trunk r12264 you can alternatively use "cashshop" in place of "shop"
to use the Cash Shop interface, allowing you to buy items with special points
(Currently stored as account vars in global_reg #CASHPOINTS and #KAFRAPOINTS.)
This type of shop will not allow you to sell items at it, you may only
purchase items here. The layout used to define sale items still count, and
"<price>" refers to how many points will be spent purchasing the them.

Is this what you looking for ?

yes

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