Page 1 of 1

Trainer/Merchant Creation

PostPosted: Sat Jun 12, 2004 6:06 pm
by Rubs
hi,

i want to create trainers and merchants on a +PvP server.

how can i set them to be not attackable by anyone from any realm ?

even if i set them to lvl 255, players are dragging them around

please tell me if and how its possible


thanx

PostPosted: Sat Jun 12, 2004 6:36 pm
by Smallhorse
I think this needs to be implemented in the core that you can not attack "friendly" NPC's on a PvP server ... on live you can not attack any npc on PvP servers or?

PostPosted: Sat Jun 12, 2004 6:40 pm
by WarLord
On Camlan you cant attack any friendly NPC thats right. They shown as enemy when you hit F8 (target next enemy) but you cant attack them.

PostPosted: Thu Jun 17, 2004 3:58 pm
by Vidi
Ok I do NOT know the DOL documentations yet.

BUT, in RunUo which is scripted in C# I would add this to a creature or vendor to make it unattackable.


public virtual bool IsInvulnerable{ get{ return true; } }



Also, from looking thorugh the latest DOL download, I can't find scripts for vendors so a basevendor script may be neccessary. Add that line into a base vendor then have all merchants within the basevendor class and they should all be invunerable.

In RunUO, invunerable NPC's won't fight back either, but I am unsure how that is handled.

I hope this helps or at least gives you an idea on how to make it work in DOL. Sorry if it doesn't.

Vidi

PostPosted: Thu Jun 17, 2004 9:18 pm
by Serg
 ñåðâåðå åñòü îïèñàíèÿ áàçîâûõ òðåíåðîâ, ìåð÷àíòîâ è òîìó ïîäîáíîãî, íî åñëè òû ñêà÷àë îòêîìïèëèðîâàíóþ âåðñèþ ñåðâåðà, òû íå ñìîæåøü îòðåäàêòèðîâàòü å¸. Äàëüøå îíè îïèñûâàþòñÿ â áàçå, è ïîêà â áàçå íå áóäåò òàêîãî ïîêàçàòåëÿ, êàê áåññìåðòèå, íåëüçÿ áóäåò èõ ñäåëàòü òàêîâûìè...

Sorry i cann`t translete this, because i want sleep...

PostPosted: Sat Jan 22, 2005 8:43 pm
by soho
Just make sure you ahve their realm set to the realm they are in.

ex in alb merchants should have realm 1

PostPosted: Sun Jan 23, 2005 12:54 am
by Quetz
Gandulf (9.Jan.2005)
- Add: New Realm "Peace" added, Members of this realm are friendly to everybody,
And Everybody thinks Peace Member is member of it's realm.


Should achieve what your after I think

PostPosted: Sun Jan 23, 2005 8:24 am
by Aku07
If you want to create "friendly" NPC on a PvP server, there is a solution. You have to create your mob/merchant, give him his level, etc... And when you're done, juste edit your mod/merchant database and replace :

<AggroRange>500</AggroRange>

by

<AggroRange>0</AggroRange>

It's working good for me,

And if you don't want players to attack them, just change their realm to 1, 2 or 3.

Aku

PostPosted: Sun Jan 23, 2005 12:29 pm
by nor
Finally everyone is satisfied, after only 6 months.