![]() |
Error in my insure script - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Error in my insure script (/Thread-Error-in-my-insure-script) |
Error in my insure script - jexnico - 02-18-2016 02:44 AM Someone tell me what is wrong with this script? I type the command and when I select the item to be insured of this error. The script is used to insure an item. (Do not lose it after death) ![]() Quote:[DEFNAME insure_settings] RE: Error in my insure script - karma - 02-18-2016 03:01 AM Are you sure that the cliloc in SYSMESSAGELOC is correct? RE: Error in my insure script - pointhz - 02-18-2016 05:21 AM You have TYPEDEF T_ITEM_INSURED but it is not set anywhere. Maybe you want [EVENTS T_ITEM_INSURED] instead. Probably the cliloc is messed up, coz the script doesn't seem wrong. RE: Error in my insure script - Khaos - 02-18-2016 07:46 AM Try this. TargetF doesn't need obj. src = <person who called trigger> argo = targeted whatevers UID. The UID though is called like uid.<argo>.key local.id = targeted items ID. (Can't remember if it is baseid or dispid (so I checked argo instead local.id)) Code: [FUNCTION TARGET_INSURE] Otherwise, you were doing the right things. I checked your clilocs and they are right. Obj and local.tmp were far from needed. |