A Boy's Dream (PLD AF boots quest)

Post Reply
radical dreamer
Posts: 24
Joined: Tue Jul 24, 2012 2:47 am

A Boy's Dream (PLD AF boots quest)

Post by radical dreamer » Wed Aug 22, 2012 7:29 am

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.

Metalfiiish
Developer
Posts: 176
Joined: Tue Jul 31, 2012 7:21 am

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

Post by Metalfiiish » Sat Oct 06, 2012 9:42 am

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.

User avatar
diatanato
Developer
Posts: 112
Joined: Thu Aug 30, 2012 9:59 pm

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

Post by diatanato » Sun Oct 07, 2012 12:21 am

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 ^^

link
Developer
Posts: 169
Joined: Fri Jul 27, 2012 3:27 pm

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

Post by link » Sun Oct 07, 2012 1:44 pm

try something along the lines of

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

Post Reply