ID:145751
 
Code:
mob
verb
Summoner()
set category="Spells"
if(usr.MP <= 0)
usr << "You don't have enough magic"
else
if(kame==0)
usr.overlays += 'mage.dmi'
kame=1
usr.MP -= 0
sleep(0)
usr.overlays -= 'mage.dmi'
sleep(1)
new/mob/summoned/Dummy(src.loc)
for(var/mob/summoned/Dummy/F in usr.loc)

sleep(30)
del(F)
sleep(1)
kame=0
else
usr << "Your Already doing a spell "

mob
var
link=0
partynumber
partycounter

mob/summoned
var/mob/monsters/F
New()
.=..()
spawn(1)
Wander()
proc/Wander()
while(src)
if (F in oview(5))
step_towards(src,F)
else
step_rand(src)
for(F in view(src))
break
sleep(5)
spawn(40)
Wander()
Bump(mob/A)
if(istype(A,/mob))
A.HP-=(15+rand(1,usr.MS)) A.DeathCheck()



here my full code of the summoner process, now it already fights for you i just need it to give the usr that make it get the exp that of a monster that the summoner destroyed. and thanks in advance for your help:

So you're asking how to add EXP to the user when he destroys a monster? Right?

Well, where ever you have your monster stats and everything else, do this.

mob
monster //or whatever you call it
dummy
icon = //whatever
icon_state = //whatever
HP = //whatever
Del() //when it is deleted which is when deathcheck is called
usr.EXP += //whatever you set it to
usr.Level_Up() //then call the Level Up proc, assuming you made one.


I believe that is what you were asking for. I couldn't really understand what you wrote it was so jumbled up.

Just remember to fix the spacing since I can't use tab here.
In response to Pyro_dragons
No.Put.Usr.In.Proc.Ungh.
In response to Mysame
ok think of it as a pet or a team system
two mobs, and one get exp from what the other kills
In response to Mysame
Are you talking to me? That's not a proc. It's just defining what the monster will give when it dies and then calls the Level Up proc for the usr.
In response to Pyro_dragons
Pyro_dragons wrote:
Are you talking to me? That's not a proc. It's just defining what the monster will give when it dies and then calls the Level Up proc for the usr.

It is a proc, therefore you should use src. It just happens to be called when an object gets deleted. If someone else calls its Del() proc, then they will end up getting the effects, which you obviously don't want. You also might want to put a ..() there, somewhere.

~~> Unknown Person
In response to Unknown Person
To learn more on that, you may want to read this borin--er, infromative page.


*cough*Log on MSN, DL*cough*