Kariton Revolution Posted March 20, 2012 Group: Members Topic Count: 161 Topics Per Day: 0.03 Content Count: 429 Reputation: 5 Joined: 11/21/11 Last Seen: January 14, 2017 Share Posted March 20, 2012 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 Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 20, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 20, 2012 change set #CASHPOINTS, #CASHPOINTS + .@input;// Amount of Points to get to this set #CASHPOINTS, #CASHPOINTS + ( .@input * 2 );// Amount of Points to get Quote Link to comment Share on other sites More sharing options...
Kariton Revolution Posted March 25, 2012 Group: Members Topic Count: 161 Topics Per Day: 0.03 Content Count: 429 Reputation: 5 Joined: 11/21/11 Last Seen: January 14, 2017 Author Share Posted March 25, 2012 thanks it's works !!! Quote Link to comment Share on other sites More sharing options...
darking123 Posted March 28, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted March 28, 2012 sir emistry how about 1 vote4points=1 tcg Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 29, 2012 just change all #CASHPOINTS to your v4p variable ex. #VotePoints Quote Link to comment Share on other sites More sharing options...
Question
Kariton Revolution
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.