34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
|
void main()
|
||
|
{
|
||
|
object oItem = GetItemActivated();
|
||
|
object oPC = GetItemActivator();
|
||
|
object oTarget = GetItemActivatedTarget();
|
||
|
|
||
|
location Llocation = GetItemActivatedTargetLocation();
|
||
|
string sTag = GetTag(oItem);
|
||
|
|
||
|
//object oCharm = GetLocalObject(oTarget, "luckcharm");
|
||
|
|
||
|
location lLoc = GetLocalLocation(oItem,"SDJ");
|
||
|
location lLoc1 = GetLocalLocation(oItem,"SDJ1");
|
||
|
location lLoc2 = GetLocalLocation(oItem,"SDJ2");
|
||
|
location lLoc3 = GetLocalLocation(oItem,"SDJ3");
|
||
|
location lLoc4 = GetLocalLocation(oItem,"SDJ4");
|
||
|
location lLoc5 = GetLocalLocation(oItem,"SDJ5");
|
||
|
|
||
|
string sArea = GetName(GetAreaFromLocation(lLoc));
|
||
|
string sArea1 = GetName(GetAreaFromLocation(lLoc1));
|
||
|
string sArea2 = GetName(GetAreaFromLocation(lLoc2));
|
||
|
string sArea3 = GetName(GetAreaFromLocation(lLoc3));
|
||
|
string sArea4 = GetName(GetAreaFromLocation(lLoc4));
|
||
|
string sArea5 = GetName(GetAreaFromLocation(lLoc5));
|
||
|
|
||
|
SetCustomToken(198020,sArea);
|
||
|
SetCustomToken(198021,sArea1);
|
||
|
SetCustomToken(198022,sArea2);
|
||
|
SetCustomToken(198023,sArea3);
|
||
|
SetCustomToken(198024,sArea4);
|
||
|
SetCustomToken(198025,sArea5);
|
||
|
|
||
|
}
|