Jump to content
  • 0

Reset Stats Scroll


budabeads

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   1
  • Joined:  02/16/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   5
  • Joined:  06/25/12
  • Last Seen:  

I think { atcommand "@streset"; } would work too.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   1
  • Joined:  02/16/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   2
  • Joined:  07/05/12
  • Last Seen:  

why need script if need a GM to reset it? just #streset <nick> right? :o

Edited by onizame
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   5
  • Joined:  06/25/12
  • Last Seen:  

You're quite right oni. /heh

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   1
  • Joined:  02/16/12
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   1
  • Joined:  02/16/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Why complicate something that is simple? It's counter-intuitive.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...