budabeads Posted July 22, 2012 Posted July 22, 2012 This is for Lightning Bolt Scroll. I can use it to other player { itemskill "MG_LIGHTNINGBOLT",3; },{},{} I want to have a Scroll that can reset a player's stat. is it a function or something? Thanks for helping me every time master scripters!!! thanks a lot!!!! Quote
Emistry Posted July 22, 2012 Posted July 22, 2012 I want to have a Scroll that can reset a player's stat. use this .............{ resetstatus; },{},{} for the lignthing bolt scroll.. it should be usable on player when you are inside PVP Zone..or i mistaken ? Quote
Eroces Posted July 22, 2012 Posted July 22, 2012 I think { atcommand "@streset"; } would work too. Quote
budabeads Posted July 22, 2012 Author Posted July 22, 2012 i mean, GM will use the scroll to reset the players stats.... not on using the item for it self... hmmmmmmm..... i hope we can make it master scripters!!!!. goodluck on us Quote
Euphy Posted July 22, 2012 Posted July 22, 2012 So you want a GM to input a player to reset stats for? I'd suggest whispering an invisible NPC or having your item call a function, since it's not what itemscripts are really meant for. But the code is pretty basic: if (getgmlevel() < 40) end; // Required GM level message strcharinfo(0),"Input a character name. The character must be online."; set .@return, getcharid(3); input .@n$; if (!attachrid(getcharid(3,.@n$))) { dispbottom "Character "+.@n$+" not online."; end; } resetstatus; attachrid(.@return); dispbottom "Stats reset."; delitem <item_id>,1; end; Quote
onizame Posted July 22, 2012 Posted July 22, 2012 (edited) why need script if need a GM to reset it? just #streset <nick> right? Edited July 22, 2012 by onizame Quote
budabeads Posted July 22, 2012 Author Posted July 22, 2012 can we focus on the function master scripters? the pattern will be the Lightning Bolt Scroll , but the function is to reset stats...it is like a GM using the scroll to reset the players' stats just by targeting the player using the scroll.... i hope it is possible..it is for all of us! Quote
Euphy Posted July 22, 2012 Posted July 22, 2012 Oh, you want it to target a player? That requires a lot of source editing, I would not suggest doing it (or, I doubt anyone will do it for free). Quote
budabeads Posted July 22, 2012 Author Posted July 22, 2012 yup!! i understand... ok then... but is this script already complete? if (getgmlevel() < 40) end; // Required GM level message strcharinfo(0),"Input a character name. The character must be online."; set .@return, getcharid(3); input .@n$; if (!attachrid(getcharid(3,.@n$))) { dispbottom "Character "+.@n$+" not online."; end; } resetstatus; attachrid(.@return); dispbottom "Stats reset."; delitem <item_id>,1; end; Quote
Emistry Posted July 22, 2012 Posted July 22, 2012 i dont think that is possible with just npc script.... perhap these required you to edit alot in the src ..maybe ~ the script post by Euphy is almost complete... just required the header... Quote
Arcenciel Posted July 24, 2012 Posted July 24, 2012 Why complicate something that is simple? It's counter-intuitive. Quote
Question
budabeads
This is for Lightning Bolt Scroll. I can use it to other player
{ itemskill "MG_LIGHTNINGBOLT",3; },{},{}
I want to have a Scroll that can reset a player's stat.
is it a function or something?
Thanks for helping me every time master scripters!!! thanks a lot!!!!
11 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.