03-20-2012, 07:11 AM
Hello i can't get why my hps dosnt work with my map
.LANG --->
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You went out to take a walk but you gone lost , you found a house you knocked , no one open , but the door went open...you walk futher</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Mansion Key">Mansion Key</Entry>
<Entry Name="ItemDesc_Mansion Key">The mansion door key</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_Key1_Name">this is madness</Entry>
<Entry Name="Note_Key1_Text">[WRITTEN IN BLOOD][br][br]If you read this / if anyone read this , Please help me!!!, some one has broken in to my office and he took everything i had....and he took me as a slave... HELP ME !!!!! </Entry>
</CATEGORY>
</LANGUAGE>
HPS -->
void Onstart()
{
AddUseItemCallback("", "Mansion Key", "Locked_door", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Locked_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Locked_door", 0, false);
RemoveItem("Mansion Key");
}
.LANG --->
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You went out to take a walk but you gone lost , you found a house you knocked , no one open , but the door went open...you walk futher</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Mansion Key">Mansion Key</Entry>
<Entry Name="ItemDesc_Mansion Key">The mansion door key</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_Key1_Name">this is madness</Entry>
<Entry Name="Note_Key1_Text">[WRITTEN IN BLOOD][br][br]If you read this / if anyone read this , Please help me!!!, some one has broken in to my office and he took everything i had....and he took me as a slave... HELP ME !!!!! </Entry>
</CATEGORY>
</LANGUAGE>
HPS -->
void Onstart()
{
AddUseItemCallback("", "Mansion Key", "Locked_door", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Locked_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Locked_door", 0, false);
RemoveItem("Mansion Key");
}