getmonsterinfo sample | closed | |
Capuche 2013-10-31 17:47:32 | In [git='doc/sample/getmonsterinfo.txt']mes " getmonsterinfo("+.@value+","+@id+") = "+getmonsterinfo(.@value,@id); @id should be .@id | |
Capuche 2013-11-01 03:10:00 | I should addif(getmonsterinfo(.@value,MOB_LV)<0 || getmonsterinfo(.@value,MOB_NAME)=="Dummy") { getmonsterinfo with an invalid monster id type name return "null", not "Dummy". BUILDIN_FUNC(getmonsterinfo) { struct mob_db *mob; int mob_id; mob_id = script_getnum(st,2); if (!mobdb_checkid(mob_id)) { //ShowError("buildin_getmonsterinfo: Wrong Monster ID: %i ", mob_id); if ( !script_getnum(st,3) ) //requested a string script_pushconststr(st,"null"); | |
Euphy 2013-11-06 19:52:51 | Fixed in 4527b6. |