Aller au contenu

Photo

int check


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
Im sure this is a simple script ..I just cant get it right...

I need a text appears script when player has no shield equipped.

Thank you 

#2
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
From what event?

Funky

#3
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
Oh I been working on the radial craft menu.

It is on the craft menu conversation.

So the coversation would read ( Craft Shield -Not Possible- Shield not equipped )




EDIT: Im trying to make it new player friendly..I know when I was a noob I was like where is the craft shield option.Dint realize I needed to equip it. Ok maybe not all noobs would be as noob as me. lol

Modifié par Knight_Shield, 23 juillet 2011 - 03:24 .


#4
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
// returns TRUE if they have a shield equiped.   
int StartingConditional()
{
   int  oLeft=  GetBaseItemType(GetItemInSlot(INVENTORY_SLOT_LEFTHAND));
   return oLeft== BASE_ITEM_LARGESHIELD ||
               oLeft== BASE_ITEM_SMALLSHIELD ||
               oLeft== BASE_ITEM_TOWERSHIELD;
}


//returns TRUE if they DO NOT have a shield equipted  
int StartingConditional()
{
   int  oLeft=  GetBaseItemType(GetItemInSlot(INVENTORY_SLOT_LEFTHAND));
   return !(oLeft== BASE_ITEM_LARGESHIELD ||
                 oLeft== BASE_ITEM_SMALLSHIELD ||
                 oLeft== BASE_ITEM_TOWERSHIELD);
}

Modifié par Lightfoot8, 23 juillet 2011 - 04:21 .


#5
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
EDIT: Its late didnt copy your script correctly. 

It works great . Thanks

Modifié par Knight_Shield, 23 juillet 2011 - 04:20 .


#6
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
lol, You probably did copy it correctly. I had an error in it before the first edit.