mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 04:37:47 +00:00
Added all the shop keeper scripts in Ul'dah. Fixed some broken populace scripts. Changed .ini files, wrong default. Fixed a syntax error in CommandProcessor.cs.
This commit is contained in:
parent
5b7ad2364b
commit
136ced3aae
32 changed files with 252 additions and 51 deletions
|
@ -88,7 +88,7 @@ namespace FFXIVClassic_Map_Server
|
|||
if (cmd.Any())
|
||||
{
|
||||
// if client isnt null, take player to be the player actor
|
||||
var player = client?.GetActor();
|
||||
var player = client.GetActor();
|
||||
|
||||
if (cmd.Equals("help"))
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[General]
|
||||
server_ip=192.168.0.2
|
||||
server_ip=127.0.0.1
|
||||
showtimestamp = true
|
||||
|
||||
[Database]
|
||||
|
@ -8,4 +8,4 @@ host=127.0.0.1
|
|||
port=3306
|
||||
database=ffxiv_server
|
||||
username=root
|
||||
password=root
|
||||
password=
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[General]
|
||||
server_ip=192.168.0.2
|
||||
server_ip=127.0.0.1
|
||||
showtimestamp = true
|
||||
|
||||
[Database]
|
||||
|
@ -8,4 +8,4 @@ host=127.0.0.1
|
|||
port=3306
|
||||
database=ffxiv_server
|
||||
username=root
|
||||
password=root
|
||||
password=
|
||||
|
|
|
@ -5,6 +5,6 @@ function init(npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:callClientFunction(player, "bookTalk");
|
||||
callClientFunction(player, "bookTalk");
|
||||
player:EndEvent();
|
||||
end
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:RunEventFunction("materiabookTalk");
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected)
|
||||
callClientFunction(player, "materiabookTalk");
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,10 +1,11 @@
|
|||
require ("global")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
|
||||
end
|
|
@ -42,11 +42,46 @@ function onEventStarted(player, npc, triggerName)
|
|||
callClientFunction(player, "welcomeTalk", shopInfo.welcomeText, player);
|
||||
|
||||
while (true) do
|
||||
choice = callClientFunction(player, "selectMode", 1);
|
||||
|
||||
tutorialId = -8;
|
||||
|
||||
if (shopInfo.tutorialId ~= nil) then
|
||||
tutorialAskMode = shopInfo.tutorialId;
|
||||
end
|
||||
|
||||
if (shopInfo.selectMode == nil or shopInfo.selectMode == 0) then
|
||||
choice = callClientFunction(player, "selectMode", tutorialId);
|
||||
elseif (shopInfo.selectMode == 1) then
|
||||
choice = callClientFunction(player, "selectModeOfClassVendor");
|
||||
elseif (shopInfo.selectMode == 2) then
|
||||
choice = callClientFunction(player, "selectModeOfMultiWeaponVendor", tutorialId);
|
||||
elseif (shopInfo.selectMode == 3) then
|
||||
choice = callClientFunction(player, "selectModeOfMultiArmorVendor", tutorialId);
|
||||
end
|
||||
|
||||
if (choice == nil) then
|
||||
break;
|
||||
elseif (choice == 1) then
|
||||
end
|
||||
|
||||
if (shopInfo.selectMode == nil or shopInfo.selectMode == 0) then
|
||||
processNormalShop(player, choice);
|
||||
elseif (shopInfo.selectMode == 1) then
|
||||
processNormalShop(player, choice);
|
||||
elseif (shopInfo.selectMode == 2) then
|
||||
processMultiShop(player, choice);
|
||||
elseif (shopInfo.selectMode == 3) then
|
||||
processMultiShop(player, choice);
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
callClientFunction(player, "finishTalkTurn", player);
|
||||
player:EndEvent();
|
||||
|
||||
end
|
||||
|
||||
function processNormalShop(player, choice)
|
||||
if (choice == 1) then
|
||||
callClientFunction(player, "openShopBuy", player, shopInfo.shopPack, shopInfo.shopCurrancy);
|
||||
|
||||
while (true) do
|
||||
|
@ -60,7 +95,6 @@ function onEventStarted(player, npc, triggerName)
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
elseif (choice == 2) then
|
||||
callClientFunction(player, "openShopSell", player);
|
||||
|
||||
|
@ -79,11 +113,45 @@ function onEventStarted(player, npc, triggerName)
|
|||
callClientFunction(player, "selectFacility", 2, 35, 3);
|
||||
callClientFunction(player, "confirmUseFacility", player, 35);
|
||||
elseif (choice == 4) then
|
||||
callClientFunction(player, "startTutorial", nil, 29);
|
||||
callClientFunction(player, "startTutorial", nil, shopInfo.classAskMode);
|
||||
end
|
||||
end
|
||||
|
||||
function processMultiShop(player, choice, sellType)
|
||||
|
||||
if (choice >= 1 and choice <= 4) then
|
||||
callClientFunction(player, "openShopBuy", player, shopInfo.shopPack[choice], shopInfo.shopCurrancy);
|
||||
|
||||
while (true) do
|
||||
buyResult = callClientFunction(player, "selectShopBuy", player);
|
||||
|
||||
if (buyResult == 0) then
|
||||
callClientFunction(player, "closeShopBuy", player);
|
||||
break;
|
||||
else
|
||||
player:SendMessage(0x20, "", "Player bought a thing at slot " .. tostring(buyResult)..".");
|
||||
end
|
||||
|
||||
callClientFunction(player, "finishTalkTurn", player);
|
||||
player:EndEvent();
|
||||
end
|
||||
elseif (choice == 5) then
|
||||
callClientFunction(player, "openShopSell", player);
|
||||
|
||||
while (true) do
|
||||
sellResult = callClientFunction(player, "selectShopSell", player);
|
||||
|
||||
if (sellResult == nil) then
|
||||
callClientFunction(player, "closeShopSell", player);
|
||||
break;
|
||||
else
|
||||
player:SendMessage(0x20, "", "Player sold a thing at slot " .. tostring(sellResult)..".");
|
||||
end
|
||||
|
||||
end
|
||||
elseif (choice == 6) then
|
||||
callClientFunction(player, "selectFacility", 2, 35, 3);
|
||||
callClientFunction(player, "confirmUseFacility", player, 35);
|
||||
elseif (choice == 7) then
|
||||
callClientFunction(player, "startTutorial", nil, shopInfo.classAskMode);
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 97,
|
||||
shopPack = 3010
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 100,
|
||||
shopPack = 3013
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 99,
|
||||
shopPack = 3012
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 98,
|
||||
shopPack = 3011
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 106,
|
||||
shopPack = 3007
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
shopInfo = {
|
||||
selectMode = 2,
|
||||
welcomeText = 281,
|
||||
shopPack = {5001, 5002, 5007, 5008},
|
||||
tutorialId = -1
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 84,
|
||||
shopPack = 3018
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
shopInfo = {
|
||||
selectMode = 3,
|
||||
welcomeText = 281,
|
||||
shopPack = {5004, 5005, 5006, 5003},
|
||||
tutorialId = -1
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 103,
|
||||
shopPack = 3015
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 102,
|
||||
shopPack = 3016
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 104,
|
||||
shopPack = 3017
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 112,
|
||||
shopPack = 3001
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 96,
|
||||
shopPack = 3009
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 105,
|
||||
shopPack = 3004
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 108,
|
||||
shopPack = 3006
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 101,
|
||||
shopPack = 3014
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 237,
|
||||
shopPack = 3023
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 109,
|
||||
shopPack = 3005
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 69,
|
||||
shopPack = 3020,
|
||||
tutorialId = 35
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 64,
|
||||
shopPack = 3021,
|
||||
tutorialId = 34
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 76,
|
||||
shopPack = 3022,
|
||||
tutorialId = 39
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 54,
|
||||
shopPack = 3019,
|
||||
tutorialId = 32
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 265,
|
||||
shopPack = 3024
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 111,
|
||||
shopPack = 3003
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
shopInfo = {
|
||||
welcomeText = 110,
|
||||
shopPack = 3002
|
||||
}
|
Loading…
Add table
Reference in a new issue