Page 1 of 1

Pop Mobs at certain location and givin them drops

Posted: Wed Jul 16, 2014 10:19 pm
by soulsin
I was want do Event like say in Besiged or certain type zone, and give them drops but make like one script, how would I go about setting it up.

On the spawn part would be like this, But how I get spawn at the pos and zone I want in and also drops from it.

cmdprops =
{
permission = 1,
parameters = "iiii"
};
function onTrigger(player)
SpawnMob('ID HERE');

Re: Pop Mobs at certain location and givin them drops

Posted: Wed Jul 16, 2014 10:36 pm
by atom0s
You cannot just spawn mobs in any zone you want. Mobs are attached to IDs that are based on the zone the mob is in.

The closest to this you can do is substitute an existing mob in a zone and change its model and drops in the database.
You wont be able to change their name though since the client handles that.

This is not a limitation in DSP either, it is how FFXI is coded.

Re: Pop Mobs at certain location and givin them drops

Posted: Wed Jul 16, 2014 11:17 pm
by soulsin
Well I seen post on here while back that guy did with command on besieged and it pop mobs in the zone when used that command, but wanted something like this with not besieged mobs

viewtopic.php?f=10&t=2025&hilit=besiged

Re: Pop Mobs at certain location and givin them drops

Posted: Thu Jul 17, 2014 12:15 am
by TeoTwawki
Everything Atom0s said is true*, however you can change a mobs spawn pos or current pos via script within the zone it actually belongs in pretty easily. Those mobs in besieged actually have client dat entries in that zone making it possible.

From my personal server:
spawnmobhere.7z
(613 Bytes) Downloaded 316 times
(This is trivial to change to work on NPCs btw, I have a command for that too.)

If you want to alter that you can specify a zone, but it still won't work if the mob does not belong in that zone to start with.

As for drop rates via script, take a look in \scripts\zones\Lufaise_Meadows\mobs\Padfoot.lua

* Barring the remote possibility of hack jobs we won't go into, some of which I have tried in zone 49 when bored...

Re: Pop Mobs at certain location and givin them drops

Posted: Thu Jul 17, 2014 12:20 am
by soulsin
Ok thanks I take a look into all it, just wanted to add spice to server and make fun at least

Re: Pop Mobs at certain location and givin them drops

Posted: Fri Jul 18, 2014 2:03 am
by soulsin
Ok for the drop how would I get that added in to make the mob drop spec item/items, of making the lua to work, if I have do that way. How would I go about getting the DropId


I seen in DB the mob_droplist dropId, type, itemId, rate. But I kno a lot mobs is missing all that. And if I edit the mob_droplist will that spec mob I edit drop item/items I want.

Re: Pop Mobs at certain location and givin them drops

Posted: Fri Jul 18, 2014 4:50 am
by TeoTwawki
Server finds which drop ID to use for a given mob by looking in mob_groups table.

Re: Pop Mobs at certain location and givin them drops

Posted: Fri Jul 18, 2014 8:53 am
by soulsin
Ok I have look into that part, cause trying see if get drops pop out on some Voidwatch NM's