Jump to content
  • 0
Sign in to follow this  
Hadeszeus

Adding Cashpoints/Kafra Points to player

Question

Wala ako mahanap kung pano eh! Meron po ba nito? Command na mag iinsert sa isang character ng Cashpoints or Kafra?

Kung wala ano lang ang pwedeng way sa ngayon? Deretcho insert sa db? advisable ba un? Pwede kaya via NPC tytype mo lng yung name nung User ma loloadan na sya ng cash?

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Wala ako mahanap kung pano eh! Meron po ba nito? Command na mag iinsert sa isang character ng Cashpoints or Kafra?

Kung wala ano lang ang pwedeng way sa ngayon? Deretcho insert sa db? advisable ba un? Pwede kaya via NPC tytype mo lng yung name nung User ma loloadan na sya ng cash?

Nako simple lang, Diba admin ka naman, ikaw lang ang pwedeng makapag bigay ng Points sa player,

 

Type mo lang Pag kafra points

#points <Character Name> <Parameters> 

Example:#points Mhalicot 10000 //<-- magkakaroon si Mhalicot ng 10000 Kafra Points in game.

Pag Cash naman

#cash <Character Name> <Parameters>

Example:#cash Mhalicot 10000 //<-- Magkakaroon si Mhalicot ng 10000 Cash Points in game.

Share this post


Link to post
Share on other sites
  • 0

I have no idea what this says, but I'm guessing you want to add to a player's Cash/Kafra Points. Here's a couple different ways to add 1 point:

  • set #CASHPOINTS, #CASHPOINTS + 1;set #KAFRAPOINTS, #KAFRAPOINTS + 1;
    #CASHPOINTS = #CASHPOINTS + 1;#KAFRAPOINTS = #KAFRAPOINTS + 1;
    #CASHPOINTS += 1;#KAFRAPOINTS += 1;
     

Share this post


Link to post
Share on other sites
  • 0

 

I have no idea what this says, but I'm guessing you want to add to a player's Cash/Kafra Points. Here's a couple different ways to add 1 point:

  • set #CASHPOINTS, #CASHPOINTS + 1;set #KAFRAPOINTS, #KAFRAPOINTS + 1;
    #CASHPOINTS = #CASHPOINTS + 1;#KAFRAPOINTS = #KAFRAPOINTS + 1;
    #CASHPOINTS += 1;#KAFRAPOINTS += 1;
     

 

Sir Mumble, thanks for the reply. But what I'm asking was, "Is it possible to add cashpoints to a player in game? If not? Is adding cashpoint directly to db_table is okay/advisable? or any other way like npc/script?

Share this post


Link to post
Share on other sites
  • 0

Sir Mumble, thanks for the reply. But what I'm asking was, "Is it possible to add cashpoints to a player in game? If not? Is adding cashpoint directly to db_table is okay/advisable? or any other way like npc/script?

 

Oh okay. The methods I proposed are for scripts, and you would just place it in whatever script you want - similar to setting a variable (because that's exactly how they're stored). Regarding your second question, I would not recommend SQL injections to update points manually.

 

If you want to give someone points manually (like as a GM reward or something), you can use the char commands #points and #cash; I think that's what @Mhalicot gave an example for as well.

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.