nazdecoco Posted March 24, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/10/13 Last Seen: August 22, 2017 Share Posted March 24, 2013 can i request for a script that resets this npc, http://pastebin.com/M9Hu9rpC, i want to make it like capuche's script.. this is his post i just dunno how to edit it.. Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 24, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted March 24, 2013 prontera,148,188,5 script Breaker Ladder 790,{ query_sql "SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` "+ "FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='brokeemp' "+ "ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Hello there "+strcharinfo(0)+", what do you want to do?"; menu "Check Emperium Break Points",-,"View Breaker Ladder",Llad,"Exchange Points",Lex, ( getgmlevel() > 98 ? "Reset Breaker" : "" ), L_reset, "Nothing",Lno; next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Hmm, wait a second, i'll go check my records.."; next; mes strcharinfo(0)+"'s Emperium Break Points is ^FF0000"+brokeemp+"^000000 Point(s)"; close; L_reset: next; mes "you really want to reset the breaker ?"; next; if ( select( "yes","no" ) -1 ) close; query_sql "DELETE FROM global_reg_value WHERE global_reg_value.`str` = 'brokeemp'"; mes "it's done ! you must log out/log in to see the change"; close; Lno: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Suit yourself.."; close; Lex: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "What points would you like to exchange?"; mes "^FF0000Note: Check your inventory and weight before exchanging with me!"; menu "Emperium Break Points",-,"Nothing",Lno; next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "What do you want to exchange with?"; menu "Billow",-,"Emblem of Solar God",Lesg,"Ripple",Lrip,"Silver Ornament",Lsil,"Wrath of Valkyrie",Lval; next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Billow?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7091,1; set brokeemp,brokeemp-75; close; Lnep: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Not enough points!"; close; Lesg: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Emblem of Solar God?"; menu "Yes",-,"No",Lno; next; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Here you go!"; getitem 7086,1; set brokeemp,brokeemp-75; close; Lrip: mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Ripple?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7090,1; set brokeemp,brokeemp-75; close; Lval: mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Wrath of Valkyrie?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7078,1; set brokeemp,brokeemp-75; close; Lsil: mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Silver Ornament?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7077,1; set brokeemp,brokeemp-75; close; Llad: next; for( set .@x,0; .@x<=9; set .@x,.@x+1 ) mes "^0000FF"+(.@x+1)+".^000000 "+.@name$[.@x]+" - ^FF0000"+.@count[.@x]+"^000000 Point(s)"; // .@x starts at 0, but you want to start with '1st', so use (.@x+1) close; } can i request for a script that resets this npc Quote Link to comment Share on other sites More sharing options...
nazdecoco Posted March 25, 2013 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/10/13 Last Seen: August 22, 2017 Author Share Posted March 25, 2013 THX Capuche.. i really appreciate it. Quote Link to comment Share on other sites More sharing options...
Question
nazdecoco
can i request for a script that resets this npc, http://pastebin.com/M9Hu9rpC,
i want to make it like capuche's script.. this is his post
i just dunno how to edit it..
Link to comment
Share on other sites
2 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.