Dennys Posted July 23, 2009 Author Share Posted July 23, 2009 ~~Hey guys im scripting a pet system which i plan to release, anyone wana help me? im trying to think of Ideas on how to make the Npc Follow you, Theoretical or Codes will help, I already got the Npc on the Map and i got it moving, now i just need a way to make it Follow the owner.~~ Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 I'll help. I've deicded I was going to start my own but didn't start yet.But for the npc following you you don't have to make it follow. Make a /heel command to make to jump back to your side. But you do have to include the way how to teleport the npc to the same map you are on. Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 YAY!!!Mcnugget was it for KO? Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 It was for everyone. Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 Oh.Well, anyways, Squiddles gonna modify it for _multiple_ NPCs Link to comment Share on other sites More sharing options...
Dennys Posted July 23, 2009 Author Share Posted July 23, 2009 I have to find a way To get rid of the Npc on one map and put it on the Next but tehre is no RemoveNpc COmmand :( Link to comment Share on other sites More sharing options...
The Oracle Posted July 23, 2009 Share Posted July 23, 2009 my advice would be to make it save the owner's coordinates and have the pet move there when the owner moves Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 Well before I started I made a list of what was needed.```Npc Pet Script Requirements:NpcvsNpcA script which makes the pet follow the userUsing the weapon levelling script to make the pet level up.Making the pet attack when you attack.Check How many npc's are on map before summoning and if there are 15 don't allow the warp or summon continue.On map load sub to do the above ^Check if you have already gotten a pet out and if so then don't allow it to come.A /unsummon command to make the pet go awayThe pet to have stats which determine what it attacks.A different coloured attack bubble for the pet's attacks.```Also, These codes should helpGetPlayerMap(Index)ScriptSpawnNPC(MapNpcNum, MapNum, spawn_x, spawn_y, NpcNum) Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 I'm pretty sure anybody using the petscript will use the source edit to add 35 NPCs to the limit. Link to comment Share on other sites More sharing options...
Dennys Posted July 23, 2009 Author Share Posted July 23, 2009 its 50, shows how much of the tutorial you read. And all those sound good lol Ill see what i can do. Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 I stumbled across this script.Sub npcmoving(ByVal MapNum As Long, ByVal MapNpcNum As Long, ByVal direction As Long, ByVal Speed As Long) Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 Shows how much you know about math. 15+35=50 Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 @Dᴺᴬ:> Shows how much you know about math. 15+35=50Have you read HM's talking about how 1+1/=2? Do you could be wrong in that fact. >.< Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 15 NPCs walk into a room with 35 NPCS already in it. There are now 50 NPCs. Cant appply to that. Link to comment Share on other sites More sharing options...
Dennys Posted July 23, 2009 Author Share Posted July 23, 2009 Sorry i thought you were saying like it was just 35…. Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 Bah humbug. Is DNA in? Or not? Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 I'M IN! Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 Can you script? Link to comment Share on other sites More sharing options...
zearth Posted July 23, 2009 Share Posted July 23, 2009 i would suggest a way to make it so players can walk through a pet so you dont block an area off by standing there with your pet Link to comment Share on other sites More sharing options...
Patrick Posted July 23, 2009 Share Posted July 23, 2009 Ahh ok Thanks Zearth for that. Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 I know scripting concepts, and I'm EXTREMELY good at deciphering how something works out, or will work out. I figured out Sixth Sense will work out. Link to comment Share on other sites More sharing options...
Dennys Posted July 23, 2009 Author Share Posted July 23, 2009 YOu can already walk through a pet lol…..Idk why but you can :O Link to comment Share on other sites More sharing options...
zearth Posted July 23, 2009 Share Posted July 23, 2009 well then nevermind XD Link to comment Share on other sites More sharing options...
Dennys Posted July 23, 2009 Author Share Posted July 23, 2009 Im having trouble with Putvar…... this shoudl work right?:call PutVar("pet.ini", getplayername(index), "pet", NpcIndex) Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 23, 2009 Share Posted July 23, 2009 Am I in? :huh: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now