So I wanted to go ahead and script the fishing portion of this quest, and here's what I have so far.
First of all, in mob_spawn_points table, Odontotyrannus should be set at: -80.727, 23.731, -39.95
I figured since fishing isn't working, how about just making the fish spawn if you have the quest active + you have the giant shell bug item + you are standing in the pond to fish the NM up in, in Oztroja + you are initializing the fishing animation. The script is below:
if ((player:getQuestStatus(SANDORIA,A_BOY_S_DREAM) == QUEST_ACCEPTED) and (player:getYPos() == 23.7314) and (player:hasItem(17001) == true) and (player:getAnimation == (ANIMATION_FISHING_START)) then
player:setAnimation == (ANIMATION_FISHING_MONSTER);
SpawnMob(17396141,52):updateEnmity(player); -- Spawn Odontotyrannus
player:delItemQty(17001,1);
end
(YPos of 23.7314 is the YPos for inside the NM's pond)
The problem I'm running into, is where to put the script. I thought at first it would be zone.lua for castle_oztroja, but I realized that the sections in that file are Initialize, Region, and Zone. So it would only be checking for this code while the server was restarting, while I'm zoning in, and while I'm in a certain region. (dunno how that one works)
At least this is what I've observed, I didn't really research it fully.
A Boy's Dream (PLD AF boots quest)
-
- Developer
- Posts: 176
- Joined: Tue Jul 31, 2012 7:21 am
Re: A Boy's Dream (PLD AF boots quest)
You could use onRegion for this one. You essentially label an area by coordinates and say if player enters the area do the script. You define the region in onInitialize and then use the region you made in the onRegion. I built a quest that used this and you can reference my quest to see how it was done(keep in mind I found that the quest did not need to be made that way and as such has been removed). Here is the link to when it was made for your reference:
http://code.google.com/p/onetimexi/sour ... ua&old=828
Everything in Green was added for this to work. You can see I define the cube in the onInitialize (which is made when the server is started, so if you change it reboot the server). Then I set the script to run when that cube is entered by inputing the script info in the onRegion and referencing the square we made earlier.
http://code.google.com/p/onetimexi/sour ... ua&old=828
Everything in Green was added for this to work. You can see I define the cube in the onInitialize (which is made when the server is started, so if you change it reboot the server). Then I set the script to run when that cube is entered by inputing the script info in the onRegion and referencing the square we made earlier.
Re: A Boy's Dream (PLD AF boots quest)
Code: Select all
and (player:getYPos() == 23.7314) and
Re: A Boy's Dream (PLD AF boots quest)
try something along the lines of
(player:getYPos() > 22.0000) and (player:getYPos() < 25.0000)
(player:getYPos() > 22.0000) and (player:getYPos() < 25.0000)