Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[G2O v.0.1.2][Server-Side] NPC Manager
#1
Hi

Ok guys. U made me to do it. 'Cause maybe. You're gonna be the one that saves me. And after all. You're my wonderwall'. 

Download

Its simple npc creator with synchronization etc. U can create monsters, bandits or whatever ur sick had try to think of.


* I've test it maybe twice with my friends (Rod <3, next question : yes, he is gay).  Report about bugs etc. Pleas ..

Example how to add Monster:

local Wilk = npcType({str = 40, hp = 10, dex = 10, aitype = "BEAST"});

addNPC("WOLFIE","WOLF",10,1250,100,400,50,Wilk);

Example how to add Friendly NPC( to talk or trade idk )

addNPC("FRIENDO","PC_HERO",200,250,100,2400,1,npcType({str = 40, aitype="NULL", hp = 30000, armor="ITAR_SLD_L", melee="ITMW_SHORTSWORD4", wyglad1 = "Hum_Body_Naked0",wyglad2 = 1,wyglad3 = "Hum_Head_Psionic",wyglad4 = 41}));

Example how to add Bandit (yes..he fck atack!)

addNPC("BANDITO","PC_HERO",200,250,100,2700,1,npcType({str = 200, aitype="2H", hp = 30000, armor="ITAR_SLD_H", melee="ITMW_ZWEIHAENDER4", wyglad1 = "Hum_Body_Naked0",wyglad2 = 1,wyglad3 = "Hum_Head_Psionic",wyglad4 = 42}));

Parameters for type npcType

str - npc strenght
dex - npc dexterity
hp - npc health.
oneh - npc one hand wrapon skill
twoh - npc two hand weapon skill
bow - npc bow weapon skill
cbow - npc crossbow weapon skill
aitype - npc AI type : NULL - nothing, BEAST - for monsters, 1H - one hand, 2H - two hand
armor - npc armor
melee - npc melee weapon
ranged - npc ranged weapon
wyglad1 - npc head model
wyglad2 - npc head texture
wyglad3 - npc body model
wyglad4 - npc body texture

Parameters for addNPC

name, instance npc, respawn time in seconds, x,y,z, angle, npctype

U can report in this thread or in discord (g2o online).
[Image: Quarchodr_sheqnnr.png]
Reply
#2
Końcówka 2017. mamy pakiety które oferują nam zaje**ste synchro. Zostańmy dalej przy komendach i utrudniajmy sobie życie.
Reply
#3
Ale pieprzysz
[Image: Quarchodr_sheqnnr.png]
Reply
#4
what does wyglad means and why dont u make it english too? Big Grin
[Image: q4qeu3ny.gif]
Reply
#5
wyglad1 - npc head model
wyglad2 - npc head texture
wyglad3 - npc body model
wyglad4 - npc body texture
Reply
#6
Kemi give me like and dont fck with me
[Image: Quarchodr_sheqnnr.png]
Reply
#7
iwtf is wrong with u quarch.. you post your stuff in the english forum and wyglad isnt english.. so i told you that. . you dont need to be mad . lol
[Image: q4qeu3ny.gif]
Reply
#8
Emm but i am not nad. Im just kiddin and this wyglad isn't important to event edit
[Image: Quarchodr_sheqnnr.png]
Reply
#9
Ok, I can create NPC (for example Bandit), and now here is one question: is bandit doing fight animations, walking, running etc? Should I write it or is it here in this script?

@edit: it works ! I have one suggestion for this. After monster kill u, he should play animation of eating you.
Reply
#10
Ty for that's.i will add this soon.
[Image: Quarchodr_sheqnnr.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Server] ORM Quarchodron 3 981 08.07.2020, 10:19
Last Post: Quarchodron
  [New G2O][Client] Free Camera Patrix 2 2,208 06.05.2020, 18:53
Last Post: Patrix
  [0.1.3] [server] ItemGroundSpawner HammelGammel 1 2,349 05.02.2020, 18:40
Last Post: demor140202
  [New G2O][Shared] OOP Area Manager Patrix 4 5,219 21.02.2019, 09:35
Last Post: Patrix
  [New G2O][Client-Side] bindKey Patrix 6 5,335 14.11.2018, 02:32
Last Post: Patrix
  [New G2O][Client-Side] OOP Camera Movement Patrix 1 2,482 20.10.2018, 14:22
Last Post: Patrix
  [New G2O][Shared] Command Handler Patrix 3 3,771 05.09.2018, 15:42
Last Post: Patrix
  [New G2O][Shared] packetListener Patrix 3 4,041 20.06.2018, 18:43
Last Post: Tommy
  [0.1.4.*] [client/server] Simple anty-cheat Profesores 8 5,861 20.03.2018, 19:16
Last Post: Patrix
  [0.1.3] [client/server] BotCreator HammelGammel 22 15,184 08.02.2018, 22:02
Last Post: HammelGammel

Forum Jump:


Users browsing this thread: 1 Guest(s)