Jump to content
  • 0

Npc item stats changer


kannywea

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  10/05/13
  • Last Seen:  

Hi, firstly I apologize for my English im Spanish!

 

I'm looking for a script for changing stats of an item, generally used in donation items..
example: I go with "X" item to npc, and allows me to assign the status that I prefer

Only STR

Only DEX

Only AGI

Dex and Str
All stats

something >_<

help me pls!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

did you want this permanently on the item or changeable at will?

 

If( Permanently )

you can use getitem2 and the armor enchantment systems orbs

 

if( Changeable )

You need to change the items database entry to check for a variable (use a bitwise) and add stats based off that variable

then have the npc set and remove those variables through a series of menus

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  10/05/13
  • Last Seen:  

I want changeable the time that the person wants, tells me how? thanks!

Link to comment
Share on other sites

  • 1

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

this is an example, very basic

1101,Sword,Sword,5,100,,500,25,,1,3,0x000654E3,7,2,2,1,2,1,2,{ if(CharVar&1){ bonus bstr,1; }if(CharVar&2){ bonus bvit,1; } },{},{}
prontera,150,182,5	scrip	Repair	811,{
    mes "[Dood]";
    mes "Want me to boost your stats when using a sword?";
    if(select("No:Yes") == 1){ close; } else { next; }
    mes "[Dood]";
    mes "What stat?";
    set CharVar,select("Str:Vit:Both")
    close;
}

if you have questions about this look up Operators -> bitwise in your /doc/script_commands

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  10/05/13
  • Last Seen:  

thank you very much! Only now I have a question..

 

in this part: 1101,Sword,Sword,5,100,,500,25,,1,3,0x000654E3,7,2,2,1,2,1,2,{ if(CharVar&1){ bonus bstr,1; }if(CharVar&2){ bonus bvit,1; } },{},{}

 

as I add Str, Vit, Dex, agi, Int.. and Only dex and str or Only Agi and Int?? thanks!

 

EDIT: I need this script to Hat, Wings and aura.. It may be that the script, modify the hat, and wing of the player without losing the changes last?

now when I use a hat This takes the value of the wing to set before, not allow me to modify them separately.. help me :C

Edited by kannywea
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...