L2JMobius
Public Development => General Discussion => Topic started by: Plankt0n on September 11, 2017, 09:50:19 PM
-
I've been trying hard to figure this out, without being able to connect the dots.
Basically, what I want is to make an NPC with custom name, custom text. and add teleport functions on it with adena cost.
Any guides available that somebody might know about? Or a hint on where to begin?
-
I did something similar ... look at this, the only thing that there are no solutions when the click is not an option does not close the window automatically.
1. IN ----> game\data\stats\npcs\custom
<npc id="70110" displayId="32944" level="85" name="Portal" usingServerSideName="true" title="Entrenamiento 1-85" usingServerSideTitle="true" type="L2Teleporter">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<parameters>
<param name="NoFnHi" value="1" />
<param name="MoveAroundSocial" value="0" />
<param name="MoveAroundSocial1" value="0" />
</parameters>
<race>ETC</race>
<sex>ETC</sex>
<stats str="88" int="79" dex="55" wit="78" con="82" men="78">
<vitals hp="4234" hpRegen="8.5" mp="1846" mpRegen="3" />
<speed>
<walk ground="50" />
<run ground="50" />
</speed>
<attack physical="1188.87259499001" magical="811.84586495282" critical="4" attackSpeed="253" range="40" type="FIST" distance="80" width="120" random="5" accuracy="5" />
<defence physical="361.78814" magical="264.74086" />
<attribute>
<defence fire="20" water="20" wind="20" earth="20" holy="20" dark="20" />
</attribute>
<abnormalResist physical="10" magical="10" />
</stats>
<status attackable="false" />
<skill_list>
<skill id="4416" level="19" /> <!-- Misc. -->
<skill id="4390" level="1" /> <!-- NPC Abnormal Immunity -->
<skill id="4415" level="1" /> <!-- Bare Hands -->
</skill_list>
<ai aggroRange="300" />
<collision>
<radius normal="40" />
<height normal="80" />
</collision>
</npc>
2. IN -----> game\data\html\teleporter
Finally you have to create an html file and enter into this:
<html>
<body>
<br>
<br>
Bienvenido invocador, te he estado esperando... <font color="FF8000">Aqui puedes entrenar tranquilamente:</font>
<br>
<center>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-22215,277103,-15046"> "Floor lv.1-10" </Button><br1>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-22258,277112,-13376"> "Floor lv.20" </Button><br1>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-22258,277226,-11648"> "Floor lv.30" </Button><br1>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-22258,277112,-9920"> "Floor lv.40-50" </Button><br1>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-19074,277112,-8256"> "Floor lv.60" </Button><br1>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-19074,277116,-9920"> "Floor lv.70" </Button><br1>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-19058,277090,-11648"> "Floor lv.80" </Button><br1>
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass _bbsteleport;-19068,277074,-13376"> "Floor lv.90" </Button>
</center>
<br>
<br>
</body></html>
-
thank you a lot for answer but i need more help. when i spawned it this happen:
(https://s26.postimg.org/lcmj91wvd/123.png)
-
Man "32944" is solo visual, and retail NPC.
for custom, the correct id:
//spawn 70110
YES -----> NPC id = "70110" ((((This is the seed))))
NO ------> DisplayID = "32944" ((((how does the seed look))))
-
I'm sorry if I seem retarded. But I'm not that familiar with the L2 server files.
What do you mean with the "seed"?
-
when I say seed I'm just giving an example, the NPC is always spawn with the npc ID, the NPC ID is like the unique code that is given in its branch, no other NPC can have a similar ID unless just to give it a visual change.
<NPC id = "70110" <-----(With this ID you can make the NPC appear) displayId="32944" <-----(With this ID you can only give the NPC appearance) level="85"<----- (NIVEL NPC) name="Portal" <----- (Name use intro server) usingServerSideName="true"<----- (CUSTOM NAME ON/OFF) title=" Here Title of NPC " usingServerSideTitle="true" <----- (TITLE ON/OFF) type="L2Teleporter" <----- (Type NPC) >
-
Hmm ok so let me get this straight...
You create a custom NPC, and set its ID to XXX where XXX is already an official NPC. then you set its APPEARANCE to another NPC id to make it look like XYX? I'm really sorry for being really retarded.
-
Yeahh bro !
-
hello i am tring make a global gatekeeper custom npc i create the xml on the npc/custom and on mods/ but when i try to spawn it say target cannot found why?
<npc id="40012" deplayId="31107" level="80" type="Gatekeeper" name="Nala" title="Global Gatekeeper" usingServerSideName="true" usingServerSideTitle="true">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
<vitals hp="3290.113" hpRegen="8.5" mp="1674.8" mpRegen="3" />
<attack physical="1952" magical="1242" random="30" critical="4" accuracy="5" attackSpeed="278" range="40" />
<defence physical="577" magical="469" />
<attribute>
<defence fire="20" water="20" wind="20" earth="20" holy="20" dark="20" default="20" />
</attribute>
<speed>
<walk ground="75" />
<run ground="120" />
</speed>
</stats>
<status attackable="false" />
<collision>
<radius normal="5" />
<height normal="16" />
</collision>
</npc>
-
deplayId="31107"
deplayId ?
-
it was i mistake i spot after i post it i fix the mistake by still the same
<npc id="40012" displayId="31107" level="80" type="Gatekeeper" name="Nala" title="Global Gatekeeper" usingServerSideName="true" usingServerSideTitle="true">
<race>ETC</race>
<sex>ETC</sex>
<stats str="40" int="21" dex="30" wit="20" con="43" men="20">
<vitals hp="3290.113" hpRegen="8.5" mp="1674.8" mpRegen="3" />
<attack physical="1952" magical="1242" random="30" critical="4" accuracy="5" attackSpeed="278" range="40" />
<defence physical="577" magical="469" />
<attribute>
<defence fire="20" water="20" wind="20" earth="20" holy="20" dark="20" default="20" />
</attribute>
<speed>
<walk ground="75" />
<run ground="120" />
</speed>
</stats>
<status attackable="false" />
<collision>
<radius normal="5" />
<height normal="16" />
</collision>
</npc>
-
can someone help please?
-
Hello, first what npcs do you need? I have one that can help you, I use it in CT0, although I don't know what rev you use
-
Hello, first what npcs do you need? I have one that can help you, I use it in CT0, although I don't know what rev you use
i use ct0 atm i trying make new npc for gmshop, gobalgk, for donate
-
i use ct0 atm i trying make new npc for gmshop, gobalgk, for donate
Hello friend, change npc type...
type="Gatekeeper"For: type="Teleporter"
reload npc and it will work :D
-
Hello friend, change npc type...
type="Gatekeeper"For: type="Teleporter"
reload npc and it will work :D
can i make a npc have done premium and staff like that?
-
so for have donation manager i guess i want a custom script?
-
Better create a item for premium it's more easy. Add stats premium
-
Better create a item for premium it's more easy. Add stats premium
ι i dont wnat only have premium i have more feature
-
Better create a item for premium it's more easy. Add stats premium
i wull create a item give premium for not donators but i want have q npc have all my donation list
-
so i need script for a donator manager npc?
-
its possible create a donator manager npc?