1. For resing a character, would i use res.src or res.inc?
2. How would i change either res.src(modified):
Code: Select all
use uo;
use os;
include "include/res2";
include "include/resPenalty";
include "include/client";
program res(who, mobile)
if((mobile.dead) && (CheckLineOfSight(who, mobile)))
set_critical(1);
if(GetObjProperty(mobile, "#ResMenu"))
return;
endif
SetObjProperty(mobile, "#ResMenu", 1);
set_critical(0);
if(ResNow(mobile)==1)
Resurrect(mobile);
ResPenalties(mobile);
endif
EraseObjProperty(mobile, "#ResMenu");
endif
endprogramOR
res2.inc(modified):
Code: Select all
use uo;
function ResNow(who)
var x := who.x;
var y := who.y;
var z := who.z;
if(MoveCharacterToLocation(who, x, y, z, MOVECHAR_FORCELOCATION))
return ret[0];
else
return 0;
endif
endfunction