View Single Post
  #67  
Old 10-10-2003, 11:48 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by haro41
Server: Zenkou
Account: haro41
Postition: Admin
NPC Server? True
NPC: A key that is added to the weapons when picked up and is deleted from weapons when the respective door is unlocked.
NPC Code:

//Key
if (playertouchsme){ // if the player touches the NPC
//add to weapons
}
if (weaponfired){ // if the player uses the weapon
say2 A key :O;
}
if (weapondelete){ // special flag to call
destroy;
}



NPC Code:

//Door
if (playertouchsme){
if (hasweapon(key)){ // if player has key
callweapon key,weapondelete; // call the weapon with flag "weapondelete"
}
}


Oh wait, this is non-npcserver...

Ah the heck. With a bit brains you could make this npc-server too,i think, cuz i'm not really familiar with NPCserver
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote