![]() |
src.spelleffect - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: src.spelleffect (/Thread-src-spelleffect) |
src.spelleffect - Osi - 02-01-2015 11:03 AM on=@death SRC.SPELLEFFECT s_earthquake , <MAGERY> src.newitem i_gold { 300 400 } why its not working ![]() ![]() ![]() RE: src.spelleffect - Jim - 02-01-2015 05:19 PM in the part of "on=@death" , the "src" is the npc(death) too. and because you are using "<MAGERY>" , so be sure the npc(death) have the "MAGERY" property with value, otherwise you must use a number directly. // on=@death ref1=<attacker.uid> ref1.spelleffect s_earthquake,100.0 // the spelleffect will be performed on the player(who kill the npc) serv.newitem i_gold {300 400} ref1.bounce <new> // there are some gold put into the backpack of the player(who kill the npc) RE: src.spelleffect - Osi - 02-02-2015 12:17 AM Code: 16:48:ERROR:(test.scp,38)Undefined keyword 'ref1.spelleffect' Code: 17:08:ERROR:(test.scp,35)Undefined symbol 'uid' thanks for helping and how I can use this? Code: [FUNCTION npccast] and 1 more thing ^^ Code: on=@gethit // here simple RE: src.spelleffect - Jim - 02-02-2015 10:44 AM about the function, i found some explain from the author: // // This function can be used to force a character to cast a specific // spell. Works on both players and NPCs. Two arguments can be given: // // "NpcCast <spell>, <target>" // spell --> spell id to cast // target --> target (optional, default: previous action's target) // - can be a uid or map location // about the "act","<..>" an effect.. can get the information from "spherewiki" : "http://wiki.sphere.torfo.org/index.php/Main_Page", there are some Tutorials and Reference Compendium. for exampe the EFFECT, : "http://wiki.sphere.torfo.org/index.php/EFFECT" |