budabeads Posted July 22, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 42 Reputation: 1 Joined: 02/16/12 Last Seen: August 8, 2012 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 22, 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 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 Link to comment Share on other sites More sharing options...
Eroces Posted July 22, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 135 Reputation: 5 Joined: 06/25/12 Last Seen: September 22, 2012 Share Posted July 22, 2012 I think { atcommand "@streset"; } would work too. Quote Link to comment Share on other sites More sharing options...
budabeads Posted July 22, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 42 Reputation: 1 Joined: 02/16/12 Last Seen: August 8, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted July 22, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share 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 Link to comment Share on other sites More sharing options...
onizame Posted July 22, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 139 Reputation: 2 Joined: 07/05/12 Last Seen: April 15, 2013 Share 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 Link to comment Share on other sites More sharing options...
Eroces Posted July 22, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 135 Reputation: 5 Joined: 06/25/12 Last Seen: September 22, 2012 Share Posted July 22, 2012 You're quite right oni. Quote Link to comment Share on other sites More sharing options...
budabeads Posted July 22, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 42 Reputation: 1 Joined: 02/16/12 Last Seen: August 8, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted July 22, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share 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 Link to comment Share on other sites More sharing options...
budabeads Posted July 22, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 42 Reputation: 1 Joined: 02/16/12 Last Seen: August 8, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 22, 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 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 Link to comment Share on other sites More sharing options...
Arcenciel Posted July 24, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share Posted July 24, 2012 Why complicate something that is simple? It's counter-intuitive. Quote Link to comment Share on other sites More sharing options...
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!!!!
Link to comment
Share on other sites
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.