ID:142158
 
Code:
if(usr.level>=36)
if(everstone==0)
if(usr.pkmnis=="charmeleon")
usr.Speeding=1
usr.var_save1=usr.tgym1
usr<<"Something is happening..."
sleep(40)
world<<"[usr] is now evolving!"
sleep(10)
usr<<"your evolution is now taking place..."
sleep(55)
usr.str+=17
usr.def+=18
usr.icon='Pokemon.dmi'
usr.icon_state="charizard"
world<<"[usr] is now a Charizard! Congratulations!"
sleep(10)
usr.Speeding=0
usr.pkmnis="charizard"
usr.wildname="Wild Charizard ~-[usr.key]-~"
usr.tgym1=usr.var_save1
if(usr.pkmnhasowner==null)
usr.name=usr.wildname
usr.Save_Mob()


Problem description:
Ok, well the issue is seen in ALL the Pokemon evo's.
The problem is that when a Pokemon evolves it's supposed to be renamed but for some reason the name won't change. Now this little snippet of coding worked in 3.5 but for some reason it's not working in 4.0 and I can't figure out what's causing the problem.

I even tried adding this to counteract the problem but it won't work either.

Code:
GM
verb
Fix_Name(mob/M in world)
set name="Bugged Name Fix"
set category="GM"
if(M.pkmnhasowner==null)
M.name="[M.wildname]"
return
else
usr<<"That player is caught you cannot fix their name."


Eh, just bumping it so people know it's here...
Your code lacks sense and robustness. Please direct yourself to the DM Guide/Dream Maker guild articles.
null is not equivalent to 0 or "".
null means no value.

Make sure you're checking it properly.
if (!pokemonhasowner) is not the same as if (pokemonhasowner==null)