Page 1 of 1

A Boy's Dream (PLD AF boots quest)

Posted: Wed Aug 22, 2012 7:29 am
by radical dreamer
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.

Re: A Boy's Dream (PLD AF boots quest)

Posted: Sat Oct 06, 2012 9:42 am
by Metalfiiish
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.

Re: A Boy's Dream (PLD AF boots quest)

Posted: Sun Oct 07, 2012 12:21 am
by diatanato

Code: Select all

and (player:getYPos() == 23.7314) and
I think that you will spend the whole month to get to this point with such accuracy ^^

Re: A Boy's Dream (PLD AF boots quest)

Posted: Sun Oct 07, 2012 1:44 pm
by link
try something along the lines of

(player:getYPos() > 22.0000) and (player:getYPos() < 25.0000)