+9 dagger - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: +9 dagger (/Thread-9-dagger) Pages: 1 2 |
+9 dagger - x77x - 04-09-2018 06:42 AM back in the old days... .add dagger .set morep 0,9,0 .set attr 021 whats the hell is morep=0,1000 ??? how can i get weapons to display the old way? "+9 dagger" or "+9 dagger of vanquishing" when identified RE: +9 dagger - ShiryuX - 04-09-2018 01:42 PM help pls want to do the same it should work like 51a RE: +9 dagger - Coruja - 04-12-2018 04:41 AM this "+ X" value on armors/weapons is calculated by s_enchant "spell" on sphere_spells.scp, and the spell effect is calculated using an 0-1000 value so: 1) on sphere_spells.scp there's an s_enchant spell, here you can set the min/max value to be used for all items (it's 1,9 by default) 2) on the weapons you must set MOREY=0 ~ 1000, this is the spell power (eg: MOREY=0 will be "+1" and MOREY=1000 will be "+9") RE: +9 dagger - x77x - 04-12-2018 08:42 AM whats 1 3 5 7 9 11 13 15 17 19 ? (weapons) 5 10 15 20 25 ? (armor) what was wrong with 0,9,0 for +9, 0,25,0 for +25 RE: +9 dagger - Coruja - 04-12-2018 03:06 PM have no idea who or why someone changed this, but anyway, things still working as before, you just need to adjust the min/max value and make sure MOREY is set on item PS: many years ago the s_enchant value was 1,15 and it got changed to 1,9 to match UO default values, because +15 was a sphere custom (wrong) value and UO default value was always +9. On AOS (2003) OSI replaced all +X bonus with Damage Increase 15%~35% (weapons) and durability bonus 20%~120% (armors) RE: +9 dagger - Mad Gunther - 03-02-2019 05:32 AM I have tried that but i didn´t get it working though. Weapons don´t display the number even using arms lore and item identification on them. Everything seems ok just like stated by Coruja in this post a while ago. Here are the settings in my sphere: Quote:[SPELL 1022] Quote:[ITEMDEF i_halberd_vanq] Someone got them working by displaying the +9, +7, etc. this way? Sphere version is 0.56d build 426. RE: +9 dagger - Coruja - 03-10-2019 08:12 AM I think these old name properties are only used when you have tooltips disabled if you're using tooltips (AOS+ clients) it's recommended edit these weapon scripts to replace these old properties (attr_magic + MOREY) with the AOS property "Damage Increase" (IncreaseDam), which does exactly the same thing RE: +9 dagger - Mad Gunther - 04-21-2019 05:40 AM Thanks for answer Coruja. I have tried that on a brand new sphere 56d and 5.0.1 client and nothing seems to change with weapons. I have even desactivated the cilocs,tooltips and all of this by default plus player event to force it to act like the old way and it didn´t work either. The only thing i´ve been able to see in source is a getter method called armor_getdefense in armor class that contains the calculations and returns the value taking in count the enchant spell, but i´ve not found the same with weapons (my programming knowledge with OOP is quite limited and poor, so i don´t know if that´s right): Code: int CItem::Armor_GetDefense() const Furthermore, with armors it happends the same for me, i can´t see the +number on them just like with weapons. I haven´t been able to find any reference in source where it shows that this value has to be displayed in the name itself of a weapon or armor. For me is easy (and 4 everyone here lol) to do this softcoded with sphere, i store the respecting number in more2 property of the item and item name should look like this in script under create trigger: Code: name = a +<more2> Halberd of Vanquishing but i was curious about it and is what so far i´ve been able to find. Maybe i have some muls files messing around with cilocs and that´s causing the trouble, but for now im not going to invest more time in that because is something easy to fix by script side. Greetings and sorry for posting the whole holy bible here. RE: +9 dagger - x77x - 04-22-2019 11:07 AM maybe its time we go back to the old way???? morep=0,9,0 not morep=0,1000 =) 0,9,0 meant +9 to damage RE: +9 dagger - Mad Gunther - 04-26-2019 07:14 AM I have just used the defs of the script you shared of souless and drk the other day with a new trigger. With @ItemAfterClick you avoid some weird errors that happends with the other script when you click the weapon on paperdoll. In my shard weappons values are:1,3,5,7,9,10 and armors:5,10,15,20,25. But you can suit the script easily for your needs. Code: //add to sphere_defs This is the only thing that have work out for me. It´s true what´s been said around this land bout you can customize anything in sphere without hardcoding it lol. It´s hella cool how you can customize these kind of things in sphere with no effort and make it look rad. |