Pop Mobs at certain location and givin them drops

Post Reply
soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Pop Mobs at certain location and givin them drops

Post by soulsin » Wed Jul 16, 2014 10:19 pm

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');
[GM] Soulsin

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: Pop Mobs at certain location and givin them drops

Post by atom0s » Wed Jul 16, 2014 10:36 pm

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.

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Pop Mobs at certain location and givin them drops

Post by soulsin » Wed Jul 16, 2014 11:17 pm

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
[GM] Soulsin

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Pop Mobs at certain location and givin them drops

Post by TeoTwawki » Thu Jul 17, 2014 12:15 am

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...
Last edited by TeoTwawki on Thu Jul 17, 2014 7:32 am, edited 2 times in total.
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Pop Mobs at certain location and givin them drops

Post by soulsin » Thu Jul 17, 2014 12:20 am

Ok thanks I take a look into all it, just wanted to add spice to server and make fun at least
[GM] Soulsin

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Pop Mobs at certain location and givin them drops

Post by soulsin » Fri Jul 18, 2014 2:03 am

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.
[GM] Soulsin

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Pop Mobs at certain location and givin them drops

Post by TeoTwawki » Fri Jul 18, 2014 4:50 am

Server finds which drop ID to use for a given mob by looking in mob_groups table.
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Pop Mobs at certain location and givin them drops

Post by soulsin » Fri Jul 18, 2014 8:53 am

Ok I have look into that part, cause trying see if get drops pop out on some Voidwatch NM's
[GM] Soulsin

Post Reply