mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-23 11:05:56 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
|
@ -0,0 +1,18 @@
|
|||
require ("global")
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
Spl = GetStaticActor("Spl000");
|
||||
magickedPrism = 3020615;
|
||||
|
||||
if not player:GetItemPackage(INVENTORY_NORMAL):HasItem(magickedPrism) then
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventELNAURE", 2);
|
||||
local invCheck = player:GetItemPackage(INVENTORY_NORMAL):AddItem(magickedPrism, 10, 1);
|
||||
if invCheck == INV_ERROR_SUCCESS then
|
||||
player:SendGameMessage(player, GetWorldMaster(), 25246, MESSAGE_TYPE_SYSTEM, magickedPrism, 10);
|
||||
end
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventELNAURE", 1);
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue