Jump to content
  • 0

How to change #KAFRAPOINTS to other variable?


Feistz

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

I dunno where to post this so please move if it in the wrong section. As the title says, is it possible to change all #KAFRAPOINTS value in my server to other variable such as #EVENTPOINTS. if yes, how can i do it? using script or mysql queries? thanks!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

set #EVENTPOINTS,#EVENTPOINTS + #KAFRAPOINTS;
set #KAFRAPOINTS,0;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

BUMP! How can I do that Emistry? Can give me more explanation or example?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

just add that in a npc script...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

How can i make if player login, it will automatically convert the points?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

OnPCLoginEvent:
...................<script>...................

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

Thanks! but i got this error:-

[sql]: DB error - Duplicate entry '0-#EVENTPOINTS-2000000' for key 'PRIMARY'
[Debug]: at d:\rathena\src\char\inter.c:620 - INSERT INTO `global_reg_value` (`t
ype`,`account_id`,`char_id`,`str`,`value`) VALUES ('2','2000000','0','#GC_CAPTUR
ES','5'),('2','2000000','0','#eventpoints','10'),('2','2000000','0','#EVENTPOINT
S','10000')

And here is my script

- script converter -1,{
OnPCLoginEvent:
set #EVENTPOINTS,#EVENTPOINTS + #KAFRAPOINTS;
set #KAFRAPOINTS,0;
}

How to fix this?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

lol ? what's this....my script shouldnt caused this ...

are you using SQL ? or TXT ..?

are you sure that's the whole script ?

where did this come from ?

#GC_Captures ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   10
  • Joined:  11/10/11
  • Last Seen:  

Weird, now the error is gone, hmm i will do some test later on. Im using SQL. Yes, that is my whole script

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