@create to already existing items - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: @create to already existing items (/Thread-create-to-already-existing-items) Pages: 1 2 |
@create to already existing items - Alias - 08-24-2012 09:13 PM Hi all , i just add in my scipt this part: ON=@CREATE COLOR=0483 HITPOINTS=60 tag.hpregen=4 tag.stamregen=4 tag.manaregen=4 tag.timeregen=4 So could some1 share function that would add : tag.stamregen=4 tag.manaregen=4 tag.timeregen=4 to items who already exist in world? Thanks, and sorry for my bad english RE: @create to already existing items - Shaklaban - 08-24-2012 09:28 PM example: [function givetags] forinstances i_katana tag.stamregen=4 tag.manaregen=4 tag.timeregen=4 endfor RE: @create to already existing items - Alias - 08-24-2012 09:31 PM I am using this for armors and all armors have almost different stam, mana, hm and time regen could that funtion be made for first name example all copper items ? would have tag.hpregen=4 tag.stamregen=4 tag.manaregen=4 tag.timeregen=4 and iron items would have tag.hpregen=3 tag.stamregen=3 tag.manaregen=3 tag.timeregen=3 RE: @create to already existing items - Extreme - 08-24-2012 10:14 PM [function givetags] forinstances i_katana if strmatch(*copper*,<baseid>) tag.hpregen=4 tag.stamregen=4 tag.manaregen=4 tag.timeregen=4 elif strmatch(*iron*,<baseid>) tag.hpregen=3 tag.stamregen=3 tag.manaregen=3 tag.timeregen=3 endif endfor RE: @create to already existing items - Alias - 08-25-2012 12:35 AM Not working It's not adding tag to item's who already exist on world... RE: @create to already existing items - Shaklaban - 08-25-2012 12:38 AM you can also give tags under item definition, this tags will applied all existing items and not saved in save files. example: [itemdef i_katana_super] id=i_katana name=super katana tag.hello=3 tag.hey=5 RE: @create to already existing items - Alias - 08-25-2012 12:52 AM ok ty for helping when i will be home i will test it Jup this works thanks RE: @create to already existing items - Skul - 08-27-2012 11:56 PM You will have to add the function in @create within the object's [itemdef], unfortunately @create does not trigger in a [typedef], so virtually it does not work in TEVENTS or TYPE on any item. Shaklaban has a good suggestion, I would try it. RE: @create to already existing items - Alias - 08-28-2012 01:57 AM What Shaklaban sad is working perfecly [itemdef i_katana_super] id=i_katana name=super katana tag.hello=3 tag.hey=5 But thanks anyway RE: @create to already existing items - Shaklaban - 08-28-2012 02:03 AM (08-27-2012 11:56 PM)Skul Wrote: You will have to add the function in @create within the object's [itemdef], unfortunately @create does not trigger in a [typedef], so virtually it does not work in TEVENTS or TYPE on any item. Shaklaban has a good suggestion, I would try it. its a new method im not sure when its added, i've seen this method in scp (used in item properties). |