mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-24 11:28:22 +02:00
Added Gridania scripts and various others. Fixed error messages popping for scripts that may not use certain functions.
This commit is contained in:
parent
67928ee875
commit
5e926bf668
169 changed files with 1310 additions and 37 deletions
|
@ -0,0 +1,34 @@
|
|||
--[[
|
||||
|
||||
PopulaceItemRepairer Script
|
||||
|
||||
Functions:
|
||||
|
||||
talkWelcome(player, bool, number, bool) - Opens the main menu
|
||||
selectItem(nil, pageNumber, ?, condition1, condition2, condition3, condition4, condition5) - "Ain't running a charity here", message said when you have insufficent funds
|
||||
confirmRepairItem(player, price, itemId, hq grade) - Shows the confirm box for item repair.
|
||||
confirmUseFacility(player, price) - Shows confirm box for using facility. Default price is 11k?
|
||||
finishTalkTurn() - Call at end to stop npc from staring at the player (eeeek)
|
||||
|
||||
--]]
|
||||
|
||||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
result = callClientFunction(player, "talkWelcome", player, false, 20, false);
|
||||
|
||||
if (result == 1) then
|
||||
callClientFunction(player, "selectItem", nil, 1, 4, 2, 3, 4, 5, 6, 7);
|
||||
elseif (result == 2) then
|
||||
callClientFunction(player, "confirmUseFacility", player);
|
||||
end
|
||||
|
||||
callClientFunction(player, "finishTalkTurn");
|
||||
|
||||
player:EndEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue