|
 |
 |
|
 |
 |
| Author |
Message |
MuadDib POL Developer
Joined: 13 Feb 2006 Posts: 830 Location: Indiana, USA
|
Posted: Mon Mar 06, 2006 5:43 am Post subject: |
|
|
btw, i mean as it is created, it adds it to the stack (Using CreateItemInBackpack() to make the item, etc)
Also, be SURE to use GetItemDescription() to create the item with it (do not just use the objtype by itself).
Below is an example script:
| Code: |
use uo;
use polsys;
program textcmd_test(who, objtype)
objtype := GetItemDescriptor(objtype);
if(!objtype || objtype.errortext)
SendSysMessage(who, "Invalid objtype");
return;
endif
var newitem := createiteminbackpack(who, objtype, 1);
SendSysMessage(who, "Info: " + newitem.name + " , " + newitem.desc);
return;
endprogram |
|
|
 |
|
|