Adding Cashpoints/Kafra Points to player

Hadeszeus

New member
Messages
651
Points
0
Location
Philippines
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?

 
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:

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

 
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;
    Code:
    #CASHPOINTS = #CASHPOINTS + 1;#KAFRAPOINTS = #KAFRAPOINTS + 1;
    Code:
    #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?

 
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>

Code:
Example:#cash Mhalicot 10000 //<-- Magkakaroon si Mhalicot ng 10000 Cash Points in game.
 
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.

 
Last edited by a moderator:
Back
Top