ID:149616
 
Hello its me again, i have found the right place to put this hehe.My problem is that when i click a boulder it brings the usr to the battle area, before the del(M)i have usr.boss1=1, the boss1=0 is defined in var/mob, and in the actual click i have...
Click()
if(usr.boss1==1)
usr<<"The way is clear."
usr.loc=locate(x,y,z)
else
boss()
in the () part of boss put usr
In response to Strange Kidd
all the boss1=1 have usr. in them, except the actual mob/var
In response to Strange Kidd
I have this is it
if(M.hp<=0)
usr<<"You have defeated [M]!"
usr<<"You gained [M.monsterexp] experience."
if(usr.lvl<=5) usr.exp+=M.monsterexp usr.maxp-=M.monsterexp
else usr<<" You are Maxed for Ver 0.02!"
usr<<"You gained [M.monstergold] gold."
usr.gp+=M.monstergold
usr.boss1=1
del(M)
In response to Draconite
Draconite wrote:
all the boss1=1 have usr. in them, except the actual mob/var

I believe Strange Kidd was saying you should pass usr into your boss() proc. (ie. boss(usr) )
In response to ACWraith
ok yea i see taht now, i put usr in the boss() and it gave me 22 errors , i put mob/M and it compiled, im trying it
In response to Draconite
I can't claim to know what is going on. However, perhaps it would help others understand if you posted the entire proc. It is rather hard to understand how your second section of code is used with the first section you posted.

(That said, Strange Kidd may have answered the question already with knowledge of a specific codebase I don't have.)
In response to Draconite
still bypassing.
In response to Draconite
sorry for the millions of posts, last one i swear, its fixed and i am retarded, it was bypassing cuz i was looping it back to battle() not battle1(), thanks again for help