Res?
Posted: Fri May 12, 2006 12:38 pm
Hey i was wondering a few things:
1. For resing a character, would i use res.src or res.inc?
2. How would i change either res.src(modified):
to something that when it res's them they get everything that was on theyre body back onto them(If they are standing on it)
OR
res2.inc(modified):
To the same thing i asked above
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