Jump to content
  • 0

hi can you help me with this


Kariton Revolution

Question


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

market,92,119,5 script Vote4Points Exchanger 838,{

waitingroom "Vote4Points Exchanger",0;

set @min_vote, 1; // minimum count on Vote Point to exchange

set @npcname$,"[^ff0000Npcname^000000]";

query_sql ("SELECT `point` FROM `vote_point` WHERE `account_id` = '"+getcharid(3)+"'", @vote);

mes @npcname$;

mes "You have ^ff0000"+@vote+"^000000 Vote Point!";

switch(select("Exchange my Point:Exit")){

case 1:

if( @vote < @min_vote ) {

mes @npcname$;

mes "^ff0000You will need "+@min_vote+" or more Vote Point to trade them with me!^000000";

close;

}

input .@input;

next;

if(.@input > @vote){

mes @npcname$;

mes "Im afraid you lack Vote Point";

close;

}

set #CASHPOINTS, #CASHPOINTS + .@input;// Amount of Points to get

dispbottom "Current Balance = "+#CASHPOINTS+" Credits";// Displays current Points

set .@new, @vote - .@input;// deletes assigned points from current vote points

if( .@new < 0 ) // safty first..

set .@new, 0;

query_sql("UPDATE `vote_point` SET `point` = '"+.@new+"' WHERE `account_id` = '"+getcharid(3)+"'");//updates the sql

close;

case 2:

end;

}

}

can you make every 1 vote4points = to 2 credits or Cash Point

thank you

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

change

set #CASHPOINTS, #CASHPOINTS + .@input;// Amount of Points to get

to this

set #CASHPOINTS, #CASHPOINTS + ( .@input * 2 );// Amount of Points to get

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

sir emistry how about 1 vote4points=1 tcg

Link to comment
Share on other sites


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

just change all

#CASHPOINTS

to your v4p variable

ex.

#VotePoints

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