Lu shangs quest crash
Forum rules
NO LONGER BEING MAINTAINED!
NO LONGER BEING MAINTAINED!
Lu shangs quest crash
Trading moat carp to Joulet crashes the server, im sure it happens with Gallijaux as well since its the same code with the quest changed.
Re: Lu shangs quest crash
If a missing ";" can crash the server then thats the problem.
There are two missing ";"-s.
EDIT: same applies to the other NPC.
Code: Select all
(...)
count = trade:getItemCount();
MoatCarp = trade:getItemQty(4401)
ForestCarp = trade:getItemQty(4289)
fishCountVar = player:getVar("theCompetitionFishCountVar");
(...)
EDIT: same applies to the other NPC.
Re: Lu shangs quest crash
iirc lua doesn't require semicolons
-
- Developer
- Posts: 176
- Joined: Tue Jul 31, 2012 7:21 am
Re: Lu shangs quest crash
To me this seems like a possible culprit:
Should be:
totalfish is undefined, however totalFish is defined.
Second issue:
Should be the rivalry for that npc, if you look closely the onTrade is looking for the proper quest, however the quest starting CS is looking for the opposite quest.
Would test/commit fix but stuck at work.
Code: Select all
totalFish = MoatCarp + ForestCarp + fishCountVar
player:setVar("theCompetitionFishCountVar",totalfish);
Code: Select all
totalFish = MoatCarp + ForestCarp + fishCountVar
player:setVar("theCompetitionFishCountVar",totalFish);
totalfish is undefined, however totalFish is defined.
Second issue:
Code: Select all
function onTrigger(player,npc)
if(player:getQuestStatus(SANDORIA,THE_COMPETITION) == QUEST_AVAILABLE
Code: Select all
function onTrigger(player,npc)
if(player:getQuestStatus(SANDORIA,THE_RIVALRY) == QUEST_AVAILABLE
-
- Developer
- Posts: 539
- Joined: Sun Jul 22, 2012 12:17 am
Re: Lu shangs quest crash
Test Server: Hanekawa | Fantasy World: Naito
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.
An occasionally updated list of what works
Bugs reports go here. | Project chat here.
Things I've found, but don't plan to work on.