imahman Posted November 19, 2015 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 49 Reputation: 4 Joined: 04/19/12 Last Seen: September 29, 2024 Share Posted November 19, 2015 I know there is a npc script that GM can set an amount of cash point at the NPC and then the player can claim the cash point from the npc. The problem is i do not know where to find the NPC. XD. Asking for people to ease my brain. Quote Link to comment Share on other sites More sharing options...
0 Leprechaun Posted November 19, 2015 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 11/09/15 Last Seen: July 28, 2018 Share Posted November 19, 2015 o_O I need this NPC to, help us... Upload script for us please. Quote Link to comment Share on other sites More sharing options...
0 PandaLovesHamster Posted November 19, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 452 Reputation: 35 Joined: 12/18/14 Last Seen: May 30, 2016 Share Posted November 19, 2015 Not the one you're looking for, but you can probably build it from this one.Note: This is not my own script, I just saw it in my collections and posted it here. Credits to the owner. - script cashpoint -1,{ OnInit: bindatcmd "addcashpoints",strnpcinfo(3)+"::OnAtcommand"; end; OnAtcommand: if (getgmlevel() < 10) end; set .@AID, getcharid(3); // save their RID mes "Hello GM"; mes "Enter the char's name:"; input .@name$; query_sql "SELECT `account_id`,`name` FROM `char` WHERE `name` = '"+escape_sql(.@name$)+"'", .@account_id,.@name$; if (!.@account_id) { mes "^FF0000This player doesn't exist!"; close; } mes "How many Activity points would you like give to^0000FF " + .@name$ + "^000000?"; input .@amt; if (.@amt < 1) { mes "Amount must be positive."; close; } mes " "; mes "Give "+.@amt+" Activity points to "+.@name$+"?"; if(select("Yes:No")==2) close; if (attachrid(.@account_id)) { set #CASHPOINTS, #CASHPOINTS + .@amt; dispbottom "Gained "+.@amt+" Activity points. Total "+#CASHPOINTS+" points"; } else { query_sql "SELECT COUNT(`account_id`) FROM `global_reg_value` WHERE `str`='#CASHPOINTS' AND `account_id`='"+.@account_id+"'", .@update; if (.@update) query_sql "UPDATE `global_reg_value` SET `value` = (CAST(`value` AS UNSIGNED)+'"+.@amt+"') WHERE `str`='#CASHPOINTS' AND `account_id`='"+.@account_id+"'"; else query_sql "INSERT INTO `global_reg_value` (`str`,`value`,`type`,`account_id`) VALUES ('#CASHPOINTS',"+.@amt+",2,"+.@account_id+")"; } attachrid(.@AID); mes "Gave "+.@amt+" Activity points to "+.@name$+"."; announce "GM "+strcharinfo(0)+" gave to "+.@name$+" "+.@amt+" Cash Points",bc_all; close; } Quote Link to comment Share on other sites More sharing options...
0 imahman Posted November 20, 2015 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 49 Reputation: 4 Joined: 04/19/12 Last Seen: September 29, 2024 Author Share Posted November 20, 2015 Thanks for the script. .. But if there is a complete one it would be better. Quote Link to comment Share on other sites More sharing options...
0 Leprechaun Posted November 27, 2015 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 11/09/15 Last Seen: July 28, 2018 Share Posted November 27, 2015 Up! Quote Link to comment Share on other sites More sharing options...
Question
imahman
I know there is a npc script that GM can set an amount of cash point at the NPC and then the player can claim the cash point from the npc. The problem is i do not know where to find the NPC. XD. Asking for people to ease my brain.
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.