Osi
Apprentice
Posts: 4
Likes Given: 4
Likes Received: 0 in 0 posts
Joined: Jan 2015
Reputation: 0
|
src.spelleffect
on=@death
SRC.SPELLEFFECT s_earthquake , <MAGERY>
src.newitem i_gold { 300 400 }
why its not working I tried cast 57 and something diffrent too but its not working. my first scp failed
|
|
02-01-2015 11:03 AM |
|
|
Osi
Apprentice
Posts: 4
Likes Given: 4
Likes Received: 0 in 0 posts
Joined: Jan 2015
Reputation: 0
|
RE: src.spelleffect
Code:
16:48:ERROR:(test.scp,38)Undefined keyword 'ref1.spelleffect'
16:48:ERROR:(test.scp,40)Undefined keyword 'ref1.bounce'
ERROR:GC: 1 unplaced object deleted
ERROR:UID=040001b42, id=0eed 'gold coin', Invalid code=3202 (Object not placed in the world)
problem is if you die before npc u cant get loot and sphere giving error like this.
Code:
17:08:ERROR:(test.scp,35)Undefined symbol 'uid'
ref1=<attacker.uid> and I did ref1=<attacker.last>
thanks for helping
and how I can use this?
Code:
[FUNCTION npccast]
// Determine spell and skill used to cast
LOCAL.SPELL = <EVAL <ARGV[0]> &~ 0ff000000>
LOCAL.SKILL = <EVAL (<STREAT <SERV.SPELL.<LOCAL.SPELL>.SKILLREQ>>) &~ 0ff000000>
IF !(<LOCAL.SKILL>)
LOCAL.SKILL = 25
ENDIF
// Set spell target
IF (<ARGV> > 2)
ACT = 0
ACTP = <ARGV[1]>, <ARGV[2]>, <ARGV[3]>, <ARGV[4]>
ELSE
REF1 = <ARGV[1]>
IF !(<REF1.UID>)
REF1 = <ACT.UID>
IF !(<REF1.UID>)
REF1 = <UID>
ENDIF
ENDIF
ACT = <REF1.UID>
ACTP = <REF1.P>
ENDIF
// Set character action
ACTPRV = <UID>
ACTARG1 = <LOCAL.SPELL>
ACTION = <LOCAL.SKILL>
RETURN 1
and 1 more thing ^^
Code:
on=@gethit // here simple
if (<act.baseid> == c_vortex) // what's act? and why need use (<..> == why 2 time )
effect=3,i_fx_heal_effect,6,35,1 // efect=3 is spell but i_fx_heal_effect,6,35,1 what's this?
src.remove // ??
endif // we closed if thing
(This post was last modified: 02-02-2015 07:11 AM by Osi.)
|
|
02-02-2015 12:17 AM |
|
|