kannywea Posted February 6, 2015 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 10/05/13 Last Seen: September 29, 2020 Share Posted February 6, 2015 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 preferOnly STR Only DEX Only AGI Dex and StrAll statssomething >_<help me pls! Quote Link to comment Share on other sites More sharing options...
1 Stolao Posted February 7, 2015 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted February 7, 2015 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 1 Quote Link to comment Share on other sites More sharing options...
Stolao Posted February 6, 2015 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted February 6, 2015 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 Quote Link to comment Share on other sites More sharing options...
kannywea Posted February 6, 2015 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 10/05/13 Last Seen: September 29, 2020 Author Share Posted February 6, 2015 I want changeable the time that the person wants, tells me how? thanks! Quote Link to comment Share on other sites More sharing options...
kannywea Posted February 8, 2015 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 10/05/13 Last Seen: September 29, 2020 Author Share Posted February 8, 2015 (edited) 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 February 8, 2015 by kannywea Quote Link to comment Share on other sites More sharing options...
Question
kannywea
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.