View Single Post
  #3  
Old 01-07-2007, 12:07 PM
Aerewen
Hill Giant
 
Join Date: Dec 2006
Posts: 110
Default

yes but like say you want an npc to cast a spell on a player.

example:

You go hail bob the npc on one side of say... ruined city of dranik... you say some dialog which causes him to pop an npc on the other side of the zone. and i'm standing there waiting for him to spawn. I hand in some random item that is for this quest which instantly depops him and respawns the version we're to kill or something like that...

all of this can be done. but say i want to make that npc summon you from the other end of the zone?

i have no way to tell it to cast on you because castspell() takes a spell id and an npc id which gets converted to an entity id... and since i triggered the mob's script by handing in the item selfcast() would summon me, not you.

There are a number of things that could be done with this variable, that's just one example.

For all the people making buffbots in pok and whatnot... ever notice that a level 1 player who gets temp from one of these bots only has it for aout 15 mins?

or when you're level 1 and get the gloomingdeep guard it lasta about 2 mins? because we're using the level of the player who triggered the script...

i just think the functionality of this variable would be great to help emulate live servers' quests and whatnot.
Reply With Quote