Full Version : expert question
xmlspawner >>Scripting Support >>expert question
<< Prev | Next >>
ambak- 02-16-2006
i want to make an area that recognize death players and send them to a place that i want.how can i do that?for example i dont want to death players to stay in champion altars (we call this spy characters) if a death player stays in altar i want it to teleport to the dungeon entrance.can i make this?
ArteGordon- 02-16-2006
you could just add a spawner that is set to AllowGhostTrig, set the ProximityRange to whatever you want, and then put in the spawn entry
SETONTRIGMOB/location/(100,200,0)
or whatever location you wanted.
That will teleport all ghosts that come within range to that location.
ambak- 02-16-2006
can you describe it clear?for example i am going to make this to the vermin horde champ in despise dungeon.can you tell me by going on this example?
ambak- 02-16-2006
i set the spawn entry like this
SETONTRIGMOB/Despise Entrance/(1301,1080,0)
but nothing happened.it says despise entrance not found
what will i write to the location part?
ambak- 02-16-2006
ohhh yeeah i understood it!
its SETONTRIGMOB/location/(1301,1080,0)
i love xmlSPAWNER!!
my last question is can we add a skillcheck for this?
or a time period warning for example if a death player enter to that area
he will be warned like this message.you are a spy character you ll be teleported in 5 seconds.
Greypurple- 02-17-2006
artegordon this is just wonderful by making this with xmlspawner but i have to give more restrictions and i think i cant make all with xmlspawner
i want to make in all the dungeon regions , teleport death and whose skills total is less than 200 to teleport to some area
can we make this?please help me.
ArteGordon- 02-17-2006
that involves modifying the DungeonRegion.cs script and adding an override for the OnDeath method

CODE
public override bool OnDeath( Mobile m ) { // move them to wherever you want return base.OnDeath(m); }

Greypurple- 02-17-2006
but you didnt understand me.if we do this with on death they can enter the dungeon .and i dont want all players to teleport when on death.this system i want for spy characters on champ altars.they create a basic char and kill it and stay in the altar and look for the champion skull status.if the champion is getting to spawn they go to the champin area with their real chars and kill the people who has spawned the champion.so i have to restrict it with skill and death method but not ondeath.what do you prefer?
ArteGordon- 02-17-2006
modify the OnEnter override for that.

CODE
public override void OnEnter( Mobile m ) { if ( m is PlayerMobile && ((PlayerMobile)m).Young ) m.SendGump( new YoungDungeonWarning() ); // check for ghost and skills and then teleport them if necessary
}

Greypurple- 02-17-2006
but this is for young players.they can abuse this easily with the " i renounce my young player status" command cant we make skill check or skills total check or anything else?
ohh sory i realize the
// check for ghost and skills and then teleport them if necessary
part now can you explain this part more?
ArteGordon- 02-17-2006

QUOTE (ambak @ Feb 16 2006, 11:29 PM)
ohhh yeeah i understood it! its SETONTRIGMOB/location/(1301,1080,0) i love xmlSPAWNER!! my last question is can we add a skillcheck for this? or a time period warning for example if a death player enter to that area
he will be warned like this message.you are a spy character you ll be teleported in 5 seconds.

yes, you can add a skillcheck. Just put your skill test in the PlayerTriggerProp property.
Adding a 5 second delay would involve configuring the spawner for sequential spawning and then having successive subgroup entries that send a message, wait, and then teleport the player.
SETONTHIS/freerun/true
SETONTRIGMOB/SENDMSG/whatever you want to say
WAITUNTIL,0.1
SETONTRIGMOB/location/(1301,1080,0)
SETONTHIS/freerun/false
where each of those entries is in a different subgroup.
The freerun mode sets it up so that one triggering will lead to all of the entries being executed. Otherwise each successive entry would wait for triggering.
ArteGordon- 02-17-2006

QUOTE (Greypurple @ Feb 17 2006, 11:40 AM)
but this is for young players.they can abuse this easily with the " i renounce my young player status" command cant we make skill check or skills total check or anything else? ohh sory i realize the // check for ghost and skills and then teleport them if necessary
part now can you explain this part more?

it would depend on exactly what you are testing for.
to test for a ghost, you can do
if(!m.Alive)
or
if(m.Body.IsGhost)
to test for total skills you would use
if(m.SkillsTotal > 7000)
or something like that
Greypurple- 02-17-2006
this was my earlier thought.than i rethink about it and if i make a period of time to teleport them then they can see the champion skull status i am stucked i dont know how to handle this subject :/do you clearly understand artegordon for what i am talking about spy characters?what if you do if you are me?
ArteGordon- 02-17-2006

QUOTE (Greypurple @ Feb 17 2006, 11:35 AM)
but you didnt understand me.if we do this with on death they can enter the dungeon .and i dont want all players to teleport when on death.this system i want for spy characters on champ altars.they create a basic char and kill it and stay in the altar and look for the champion skull status.if the champion is getting to spawn they go to the champin area with their real chars and kill the people who has spawned the champion.so i have to restrict it with skill and death method but not ondeath.what do you prefer?

why dont you just do it using the proximity triggered spawner that is set to detect ghosts as I described it earlier? You can add a skill check if you want and it will prevent those ghosts from getting near the altar.
I dont know why you would want a 5 second delay either. Just send them a message and telport them.
I dont understand what you were asking earlier about preventing ghosts from coming into all of your dungeon regions.

QUOTE
artegordon this is just wonderful by making this with xmlspawner but i have to give more restrictions and i think i cant make all with xmlspawner i want to make in all the dungeon regions , teleport death and whose skills total is less than 200 to teleport to some area
can we make this?please help me.

Greypurple- 02-17-2006
okay okey ley me tell this story clear
i want to prevent players whose total skill is less than 466 to not enter the dungeons.so by this way.no one can enter a dungeon with basic characters and making spy.