[Request]MonsterAppearWhenURightClickItem

12/24/2009 06:51 Jăy1029#1
I need someone to make me a code so that a certain monster will appear beside your char when you right click on a rose. I'm a noobish coder and I tried everything and anything I knew before I posted this so please help out I'm pissed =\

+1k if you help ofc =)
12/24/2009 15:17 ImmuneOne#2
First of all, what source?
And i think it's the same concept as loading a monster spawn out of the database.
Just head to the function, copy and paste the code for spawning monsters and then you paste it in the handler of the item.
12/24/2009 15:52 Jăy1029#3
its for LOTF. And I tried that, it didn't work. I could have done it wrong idk i couldn't rly tell. >.>

Could you get the function and put it in the handler for the rose, then i can paste it in see if i get errors.

btw is this the handler for rose? It was set to give 50cps b4 just ignore that =p

Quote:
else if (ItemParts[0] == "723051")
{
CPs += 50;
MyClient.SendPacket(General.MyPackets.Vital(UID, 30, CPs));
RemoveItem(ItemUID);
}
12/24/2009 16:12 Nullable#4
From my 2 weeks knowledge about spawning, the monster data is being called from a file or database including the map identification number along with x, y coordinates, so i guess you'll have to only read other variables and change the map identification number to the current map which the player is on and just add or remove some points to the x and y coordinates of the client then call the spawn function using these arguments :}
12/24/2009 18:18 PeTe Ninja#5

Singlemob mob = new mob(blah, blah, blah, blah);
mob.spawn();


basically like spawning guards.. if you need more and EXACT help pm me your teamviewer id and pass and I will do it for you.
03/02/2010 02:44 Jăy1029#6
Damn too bad I got banned from this site for infractions. I quitted everything after that. I would have definatley taken you up on that offer pete xD

Currently working on getting my 5165 source running on windows 7.
03/02/2010 02:47 spare2#7
Please don't bump a old thread to say something unnecessary. It's considered as necroing.
03/02/2010 06:43 Huseby#8
^
That and #Closed