Author Topic: Adding Items to containers with Weidu  (Read 3932 times)

Offline Red Carnelian

  • Planewalker
  • *****
  • Posts: 24
Adding Items to containers with Weidu
« on: October 23, 2007, 03:02:07 PM »
I'm trying to add an item to a container in an area using Weidu. Is there a tutorial anywhere for that task? I searched but to no avail and most of the examples from other MODS are too complicated fo me at the moment.

Offline Azazello

  • The Anti-Spammer
  • Planewalker
  • *****
  • Posts: 405
  • Gender: Male
    • Azazello’s Music Profile at Last.fm
Re: Adding Items to containers with Weidu
« Reply #1 on: October 23, 2007, 06:47:49 PM »
Freedom's Reign/Reign of Virtue adds some items in very simple code:
Code: [Select]
//Container
///////////

IF
   Global("DeSpawnItem","AR0602",0)
THEN
   RESPONSE #100
      SetGlobal("DeSpawnItem","AR0602",1)
      ActionOverride("Jailkeep Table",CreateItem("DeITM033",0,0,0)) // Dirk
      ActionOverride("Jailkeep Table",CreateItem("DeITM068",0,0,0)) // Sabre
      ActionOverride("Jailkeep Table",CreateItem("DeITM007",0,0,0)) // Hatchet
      ActionOverride("Jailkeep Table",CreateItem("DeITM034",0,0,0)) // Horseman's Flail
      Continue()
END

These are added via a BAF for area AR0602.
Community Contributions
Level 1 NPCs * gMinion: expanded TP2 for MegaInstalls * PSM (PSQM): expanded scripts for Melanthium * non-detectable Cloak of Non-Detection ?? * Weimer's-Tactics: revised TP2 for MegaInstalls
========================================
"Deception has many faces. Truth...has only one."

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: