in pol093 old modified zh scripts.
Thanks for all help...
msn: westrupp@hotmail.com
Need cmd to say dmg of weapons
cant You search in iteminfo.src part that shows that and use it????
use uo;
use polsys;
program show_dmg_txt(who)
var cfg := GetItemDescriptor((who.weapon).objtype);
mindmg := Cint(cfg.MinDamage + who.weapon.dmg_mod);
maxdmg := Cint(cfg.MaxDamage + who.weapon.dmg_mod);
sendsysmessage(who,"Min dmg: "+mindmg+" / Max dmg: "+maxdmg);
endprogram
I dont know if it works
use uo;
use polsys;
program show_dmg_txt(who)
var cfg := GetItemDescriptor((who.weapon).objtype);
mindmg := Cint(cfg.MinDamage + who.weapon.dmg_mod);
maxdmg := Cint(cfg.MaxDamage + who.weapon.dmg_mod);
sendsysmessage(who,"Min dmg: "+mindmg+" / Max dmg: "+maxdmg);
endprogram
I dont know if it works
i maked this script but he dont appear target to click in weapons...
Code: Select all
use uo;
program dmg(who, character)
var item;
SendSysmessage( character , "Select an Item." );
item := Target( character , TGTOPT_NOCHECK_LOS );
if(!item or item.intelligence)
SendSysmessage( character , "Invalid selection." );
return;
endif
function General( item )
if(item.hp)
data[16] := item.hp + "/" + item.maxhp;
else
data[16] := "n/a";
layout[36] := 0;
endif
var weapfile := ReadConfigFile( ":combat:itemdesc" );
var entry := weapfile[item.objtype].damage;
if(entry)
var dam := weapfile[item.objtype].damage;
data[17] := "Damage";
data[18] := dam;
data[32] := "Dmg modifier";
data[33] := item.dmg_mod;
endif
sendsysmessage(who," Damage: " + dam + " / Dmg modifier: " + item.dmg_mod );
endfunction
endprogram
uh, Your script...
use uo;
program dmg(who)
var item;
SendSysmessage( who , "Select an Item." );
item := Target( who , TGTOPT_NOCHECK_LOS );
if(!item or !(item.isa(POLCLASS_WEAPON)))
SendSysmessage( who , "Invalid selection." );
return;
endif
show_dmg(who,item); //in this You can use what I wrote in previous post
endprogram
function show_dmg(who, item )
endfunction
use uo;
program dmg(who)
var item;
SendSysmessage( who , "Select an Item." );
item := Target( who , TGTOPT_NOCHECK_LOS );
if(!item or !(item.isa(POLCLASS_WEAPON)))
SendSysmessage( who , "Invalid selection." );
return;
endif
show_dmg(who,item); //in this You can use what I wrote in previous post
endprogram
function show_dmg(who, item )
endfunction