PenUltima Online

It is currently Wed Aug 20, 2008 9:54 am

All times are UTC - 4 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: new questions getting item graphics on a gump
PostPosted: Tue Sep 05, 2006 2:34 pm 
i want to check a mobiles backpack if it contains certain items and if it does, show the graphic on the gump.

Code:
var RedCactusSeed      := GetObjTypeByName   ("RedCactusSeed");
var BlueCactusSeed      := GetObjTypeByName   ("BlueCactusSeed");
var GreenCactusSeed   := GetObjTypeByName   ("GreenCactusSeed");
var ShineyCactusSeed    := GetObjTypeByName   ("ShineyCactusSeed");
var DarkCactusSeed        := GetObjTypeByName   ("DarkCactusSeed");
var CuteCactusSeed       := GetObjTypeByName   ("CuteCactusSeed");

var RedCactusSeed1, GreenCactusSeed1,BlueCactusSeed1,ShineyCactusSeed1,DarkCactusSeed1,CuteCactusSeed1;
   
foreach seed in enumerateitemsincontainer(who.backpack)
   
   if (seed.objtype==RedCactusSeed)
      RedCactusSeed1:=1;
      gfdata[7]:= seed.Graphic;
                endif
endforeach

i hope someone can help me :)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 4 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl