Difference between revisions of "OnClientLeave"

From NWN Lexicon
Jump to: navigation, search
Line 1: Line 1:
20171215 junda
+
=OnClientLeave=
http://www.ysloutlet.us.com
+
 
http://www.footballshirts.me.uk
+
The script attached to this event fires when a client leaves the module. This can be used to remove any custom creatures spawned because of the appearance of a particular PC or a variety of other things. During this event, the player has already left. All data that pertains to the player is unavailable (GetPCPlayerName, GetPCPublicCDKey, GetPCIPAddress) and the player has become detatched from the character object, hence GetIsPC returns false. If you want any of this information at time of client leave, you must have already stored this information (on client enter is a good time to do this). Also, due to this, no locals can be stored on the PC at this time. If you want to store information pertaining to the player during this event, store it on the module with something to indicate which player and character it is for.
http://www.longchampsoldes.fr
+
 
http://www.michaelkorscybermonday.us.com
+
====Trigger====
http://www.christianlouboutin-shoes.me.uk
+
 
http://www.poloralphlaurens.me.uk
+
Whenever a player logs out of a server or leaves the module. This event doesn't trigger in local/single player game at all.
http://www.niketrainersnikeshoes.co.uk
+
 
http://www.michaelkors.de.com
+
====Function(s)====
http://www.rayban--sunglasses.co.uk
+
 
http://www.pandoraoutlet-store.us.com
+
[[GetExitingObject | GetExitingObject() ]] returns the PC who is leaving.
http://www.michaelkors.eu.com
+
 
http://www.oakleysunglassescheapoutlet.us.com
+
====Remarks====
http://www.coach-outletonlinesale.us.com
+
 
http://www.mulberryoutlets.org.uk
+
Triggers before player exit an Area and in case the player is dead, area's OnExit event won't fire at all. For more info see [[OnExit]].
http://www.coachoutlet-onlines.us.com
+
 
http://www.uggoutletonlinestore.us.org
+
You can't get any information off the GetExitingObject(), which basically means you can't store, for example, thier location, and get it locally - SetLocalLocation() and GetLocalLocation() respectively. Some informations are however still accessable, namely: GetName, GetLocalInt, GetLocalString, GetLocalFloat, GetLocalLocation (this list is not exhaustive). However, while data can be accessed from local vars, setting local variables in this event doesn't work. To workaround it, you need to set local variable on module with the player ID / name as a part of the variable name, ie. SetLocalInt(OBJECT_SELF,ObjectToString(oPC)+"_exited",TRUE);
http://www.canadagooseoutlets.name
+
 
http://www.nikerosherun.me.uk
+
====Known Bugs====
http://www.coachcanada-outlet.ca
+
 
http://www.coachoutletcoupons.us.com
+
GetPCPlayerName doesn't work properly during this event; GetExitingObject does not return an object that can be saved to the database. See above for reasons, and the other functions that do not return data.
http://www.truereligionjeans.org.uk
+
 
http://www.uggsoutlet-boots.us.com
+
====Example====
http://www.lebronjamesshoess.us.com
+
 
http://www.uggbootsclearancesale.us.org
+
<nwscript>
http://www.michaelkorsoutletca.us.com
+
// In the Client Exit, the actual object (now almost like a dead-AI
http://www.polooutletclearance.us.com
+
// NPC) still exsists, but the PC's properties do not.
http://www.rayban-sunglassesoutlet.us.com
+
 
http://www.uggoutletstoresofficial.us.com
+
// In this example, we know GetName will work, such as a
http://www.mikmok.com
+
// characters name "Hero". If we used GetPlayername(), it
http://www.christianlouboutinonline.us.com
+
// wouldn't return a valid string, mearly "".
http://www.pandoraoutletstore.us.org
+
 
http://www.ralph-laurenpolo.us.com
+
// Other things that would be useful might be GetLocalInt(),
http://www.fitflop.in.net
+
// GetLocalString(), GetLocalLocation() and so on. These might
http://www.coachoutletcoachfactoryoutlet.us.com
+
// be stored to the database, for example, for when they re-log
http://www.michaelkorsoutletme.us.com
+
// into the server next time.
http://www.coachoutletclearance.us.com
+
 
http://www.canadagoosejackets-uk.org.uk
+
void main()
http://www.coachoutletonlinefactorystore.us.com
+
{
http://www.katespadeoutletonlines.us.com
+
    // Valid data we could use:
http://www.oakleysunglassesoutlet-online.us.com
+
    object oPC = GetExitingObject();
http://www.coachoutletclearanceonline.us.com
+
 
http://www.adidasnmdad.us.com
+
    // If they have an item, of tag SHOUT_EXIT, we shout to the
http://www.uggoutletusa.us.com
+
    // world we have exited. As it is the module shouting, it should
http://www.huarachesshop.com
+
    // appear as "[SERVER]" as the shouter name.
http://www.cheapnba-jerseys.us.com
+
    if(GetIsObjectValid(GetItemPossessedBy(oPC, "SHOUT_EXIT"))
http://www.niketrainers-uk.org.uk
+
    {
http://www.uggoutletshop.us.com
+
        // Shout
http://www.coachoutletcanada.com.co
+
        SpeakString("Leaving!" + GetName(oPC), TALKVOLUME_SHOUT);
http://www.oakleysunglasses-uk.org.uk
+
    }
http://www.michaelkors-outletonlineclearance.us.com
+
}
http://www.marc-jacobs.us.org
+
</nwscript>
http://www.uggbootscybermonday.us.com
+
 
http://www.uggsoutlet.ca
+
====See Also====
http://www.nikeshoesfactory.us.com
+
 
http://www.outletchristianlouboutin.us.com
+
{| class="seealso"
http://www.christianlouboutinoutletfactory.us.com
+
|-
http://www.true-religion.org.uk
+
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
http://www.adidasnmduk.org.uk
+
|
http://www.adidas-wings.in.net
+
[[GetExitingObject | GetExitingObject() ]]
http://www.michaelkors-outletonlinesale.us.com
+
|}
http://www.toryburchoutletstores.us.org
+
 
http://www.birkenstock-outlet.us.com
+
----
http://www.long-champhandbags.co.uk
+
[[Category:Module_Events]]
http://www.swarovskioutletstores.us.com
+
[[Category:Events]]
http://www.coach-outletclearance.us.com
 
http://www.niketrainers-uk.co.uk
 
http://www.addidasshoes.net
 
http://www.michaelkorsfactory-outlets.us.com
 
http://www.uggsoutletonlinestore.us.com
 
http://www.cheap-snapbacks.us.com
 
http://www.jordanshoesstore.us.com
 
http://www.cheapoakleysunglassesfactory.us.com
 
http://www.uggsbootsclearance.us.org
 
http://www.fitflopssale.me.uk
 
http://www.coachoutlet-clearance.us.com
 
http://www.michaelkorswallets.us.org
 
http://www.burberrysaleoutlet.us.com
 
http://www.poloralphlaurendiscount.us.com
 
http://www.poloralphlaurenoutlet-online.us.com
 
http://www.raybansunglassesok.us.com
 
http://www.vansshoesoutletstore.us.com
 
http://mulberryoutlet.outlet-store.co.uk
 
http://www.michaelkorsoutletcheap.us.com
 
http://www.salvatore-ferragamo.in.net
 
http://www.eccosale.com
 
http://www.pradahandbagsuk.co.uk
 
http://www.ferragamo-outlets.us.com
 
http://www.canadagooseparka.name
 
http://www.moncleroutletonline.us.com
 
http://www.canadagooseoutlet-stores.com
 
http://www.oakleysunglasseseye.us.com
 
http://www.ferragamooutletstore.net
 
http://www.michaelkorsukhandbags.co.uk
 
http://www.longchampoutlet1.us.com
 
http://www.nikeshoesforwomen.us.com
 
http://www.pandoracharmss.us.com
 
http://www.nhljerseysforsale.us.com
 
http://www.vans-shoes.cc
 
http://www.longchampoutletonlines.us.com
 
http://www.burberryoutletstore.in.net
 
http://www.nfljerseysonlines.us.com
 
http://www.coachoutletstore.com.co
 
http://www.michael-korsoutletuk.org.uk
 
http://www.oakleysunglasseswholesaleusa.us.com
 
http://www.oakleysunglassesoutletcheap.us.com
 
http://www.nikeshoesusa.us.com
 
http://www.cheapjordan-shoes.us.com
 
http://www.pandorajewellery.cc
 
http://www.uggboots-australia.us.com
 
http://www.hervelegeroutlet.us.com
 
http://www.ralphlauren-pascher.fr
 
http://www.soccerjerseys.us.com
 
http://www.michaelkors-handbagsuk.me.uk
 
http://www.ray-bansunglassesofficial.us.com
 
http://www.ralphlauren-outletuk.co.uk
 
http://www.long-champpliage.fr
 
http://www.oakleysunglassesoutletsale.us.com
 
http://www.pradasunglasses.us.com
 
http://www.mulberryhandbags-uk.me.uk
 
http://www.kobeshoes.us
 
http://www.polooutletonlinestores.us.com
 
http://www.hermes-birkin.in.net
 
http://www.poloralphlaurensale.us.com
 
http://www.raybansunglassescheapsale.us.com
 
http://www.michaelkorsoutletonline-stores.us.com
 
http://www.simlogy.com
 
http://www.edhardy.us.com
 
http://www.ugg-outletsstore.us.com
 
http://www.shoelysale.com
 
http://www.reebokoutletstores.us.com
 
http://www.michaelkorsoutletclearance-online.us.com
 
http://www.ugg-bootsoutlet.us.org
 
http://www.katespadeoutletonlinestores.us.com
 
http://www.coachhandbagsclearance.us.com
 
http://www.christianlouboutinoutletsale.us.com
 
http://www.fitflopsshoes.me.uk
 
http://www.michaelkorsoutletwww.us.com
 
http://www.polooutletsale.us.com
 
http://www.cheapuggbootsonline.us.com
 
http://www.hermesoutletstore.us.com
 
http://www.lacostepoloshirts.us
 
http://www.uggoutlets.ca
 
http://www.raybansunglassesforwomens.us.com
 
http://www.airmax-trainers.co.uk
 
http://www.canadagooseoutletstoresale.us.com
 
http://www.fredperrypolo-shirts.com
 
http://www.monclersjackets.com
 
http://www.ralphlaurenpoloshirts.org.uk
 
http://www.coachoutlet-store.us.org
 
http://www.canadagoosejacketssale.co.uk
 
http://www.michaelkorsoutletonline-shop.us.com
 
http://www.polotshirts.org
 
http://www.coachfactoryoutletcoachoutlet.us.com
 
http://www.pandora-outletstore.us.com
 
http://www.poloralphlaurenfactorystore.org.uk
 
http://www.fitflopssaleclearance.in.net
 
http://www.canada-goosejacketsoutlet.us.com
 
http://www.toryburchoutletclearance.us.com
 
http://www.oakleysunglassescheapwholesale.us.com
 
http://www.raybansunglasses-outlets.us.com
 
http://www.adidastrainersshoes.co.uk
 
http://www.canadagooseoutletclearance.us.com
 
http://www.uggoutlets-store.us.com
 
http://www.canadagoosejacketssale.ca
 
http://www.raybansunglassesonsales.us.com
 
http://www.christianlouboutins.org.uk
 
http://www.bottega-venetaoutlet.us
 
http://www.coachoutletstoreoutlet.us.com
 
http://www.uggsoutletssale.us.com
 
http://www.airmax90uk.me.uk
 
http://www.nikeairhuaraches.co.uk
 
http://www.canada--goosejackets.ca
 
http://www.uggoutletclearance.us.com
 
http://www.cheapnfljerseysus.us.com
 
http://www.jordanshoesoutlet.us.com
 
http://www.katespadeoutletstore.us
 
http://www.michaelkorsoutletmichaelkorsoutletonline.us.com
 
http://www.toryburch.com.co
 
http://www.christianlouboutinoutletshop.us
 
http://www.hermesbelts.us.com
 
http://www.coachoutletonline.com.co
 
http://www.jordan-shoes.us.com
 
http://www.uggboots-clearance.us.org
 
http://www.ferragamoshoes.org.uk
 
http://www.coachfactoryoutletstores.us.org
 
http://www.toryburchoutlets.us.org
 
http://www.toryburchoutlet-online.us.com
 
http://www.thomassabocharms.me.uk
 
http://www.oakleysunglasseswholesaleus.us.com
 
http://www.uggsoutletuggboots.us.com
 
http://www.cheapnhljerseyss.us.com
 
http://www.airforce1.us.com
 
http://www.jordanshoesshop.us.com
 
http://www.raybansunglassesrbs.us.com
 
http://www.canadagoose-jackets.us.org
 
http://www.yeezyboostoutlet.us.com
 
http://www.basketballshoes.us.com
 
http://www.coachoutletstoreonlineclearance.us.com
 
http://www.airmax90.us.com
 
http://www.nikeairmax90.nl
 
http://www.cheapmlbjerseys.net
 
http://www.cheapmichaelkors-handbags.us.com
 
http://www.nikefree5.us
 
http://www.giuseppe-zanotti-outlet.org
 
http://www.ugg-outletonlineclearance.us.com
 
http://www.fitflopsshoes.in.net
 
http://www.truereligionjeansoutlets.us.com
 
http://www.fitflopssale.us
 
http://www.uggsoutlet-stores.us.com
 
http://www.canadagooseoutlet-store.name
 
http://www.michaelkorsoutletfriday.us.com
 
http://www.michaelkorshandbags-onsale.us.com
 
http://www.moncler-jackets.org.uk
 
http://www.nfljerseysusa.us.com
 
http://oakley.sunglassess.us.com
 
http://www.uggbootsblackfridays.us.com
 
http://www.canada-gooseoutletstore.com
 
http://www.truereligionjeanssale.com
 
http://www.uggoutletofficials.us.com
 
http://www.uggoutlet.ca
 
http://www.canadagooseblackfriday.us.com
 
http://www.michaelkorsoutletclearanceinc.us.com
 
http://www.michaelkorsoutlet-sale.us.com
 
http://www.adidas-uk.me.uk
 
http://www.pandoraoutletjewelry.us.com
 
http://www.coachoutletclearance.us.org
 
http://www.michaelkorsoutlet-uk.me.uk
 
http://www.coachoutletonline-clearance.us.com
 
http://www.canadagooseoutlet-online.com
 
http://www.cheapjordansonline.us.com
 
http://www.truereligionoutletclearance.us.com
 
http://www.uggoutletonlineclearance.us.org
 
http://www.michaelkorsofficial.us.com
 
http://www.canadagooseoutletss.us.com
 
http://www.uggcybermonday.us.com
 
http://www.christianlouboutinoutletcl.us.com
 
http://www.coachoutletoutlet.us.com
 
http://www.poloralphlauren-outlets.us.com
 
http://www.newbalanceshoes.in.net
 
http://www.tomsnosko.com
 
http://www.salomonshoessalomonoutlet.us.com
 
http://www.moncler.us.com
 
http://www.ralphlaurenpolo.eu.com
 
http://www.coachoutletcoachoutletonline.us.com
 
http://www.canadagooseoutletstore.cc
 
http://www.coachoutletsales.us.com
 
http://www.truereligionoutlet-store.us.com
 
http://www.handbagslongchamp.us.com
 
http://www.kobebryantshoes.in.net
 
http://www.todsoutlet.us.org
 
http://www.longchamphand-bags.co.uk
 
http://www.pandoracharms-saleclearance.org.uk
 
http://www.truereligionjeans.co.uk
 
http://www.hermesoutletonline.us.com
 
http://www.canadagoosejacketsca.ca
 
http://www.polo-outletstore.us.com
 
http://www.oakleysunglasseswholesaleoakley.us.com
 
http://www.foampositeshoe.net
 
http://www.cazaloutlet.us.com
 
http://www.raybansunglasses1.us.com
 
http://www.christian-louboutinoutletstore.us.com
 
http://www.christian-louboutin.us.org
 
http://www.cheapsoccerjersey.net
 
http://www.ralphlaurenpoloshirtss.us.com
 
http://www.nikeblazerpaschers.fr
 
http://www.chicagoblackhawksjerseys.us.com
 
http://www.michaelkorsoutletfactorystore.us.com
 
http://www.toryburch-outletstore.in.net
 
http://www.pandoraoutletshop.us.com
 
http://www.coach-outletstore.us.org
 
http://www.asics-shoes.us.com
 
http://www.truereligion-jeansoutlet.us.com
 
http://www.swarovskicrystaluk.org.uk
 
http://www.pandorajewelrycharm.us.com
 
http://www.poloralphlaurens.org.uk
 
http://www.fitflopsoutletsale.com
 
http://www.uggsoutletclearance.us.org
 
http://www.coachoutletonline-factory.us.com
 
http://www.oakley-sunglasseswholesale.us.com
 
http://www.canadagooseoutletstores.name
 
http://www.nikeshoessale.us.com
 
http://www.canadagooseoutletofficial.name
 
http://www.michaelkorsoutletclearanceus.us.com
 
http://www.coachoutletstorecoach.us.com
 
http://www.uggoutletscheap.us.com
 
http://www.cheapmlbjerseyss.us.com
 
http://www.true-religionjeanssale.us.com
 
http://www.airmax90uk.co.uk
 
http://www.coachoutletonlinecoachfactory-outlet.us.com
 
http://www.cartieroutlets.us.com
 
http://www.canadagoosesjackets.com.co
 
http://www.poloralphlaurencheap.us.com
 
http://www.airhuaracheuk.org.uk
 
http://www.canadagooseoutletca.us.com
 
http://www.canadagoosecybermonday.us.com
 
http://www.uggoutletcheap.us.com
 
http://www.reeboktrainers.me.uk
 
http://www.uggoutletuggs.us.com
 
http://www.oakley-sunglasses.nom.co
 
http://www.montblancpenssale.us.com
 
http://www.katespade-outlets.us.org
 
http://www.coachoutletonline.us.org
 
http://www.eccoshoesoutlet.us.com
 
http://www.mulberrysaleuk.org.uk
 
http://www.ralphlauren-polo.us.org
 
http://www.cheap-jordanshoes.us.com
 
http://www.nfljerseysus.us.com
 
http://www.coachoutletonlineclearance.us.com
 
http://www.raybansunglassesonlines.us.com
 
http://www.polooutletpolo.us.com
 
http://www.truereligionjeansoutlet.co.uk
 
http://www.toryburchoutletonlinestore.us.com
 
http://www.uggsoutletscheap.us.com
 
http://www.pradaoutlet.us
 
http://www.ralphlaurenpolo.us.org
 
http://www.oakleysunglasses-sale.us.com
 
http://www.truereligion-jean.us.com
 
http://www.coach-factoryoutletclearance.us.com
 
http://www.jordanshoesfactory.us.com
 
http://www.ralphlaurenoutlet.org.uk
 
http://www.canadagoosejackets-outlet.us.com
 
http://www.uggsboots.ca
 
http://www.oakleysunglassesformens.us.com
 
http://www.coachfactoryoutletoutlet.us.com
 
http://www.max1.nl
 
http://www.montblancpenss.us.com
 
http://www.longchampoutlet.us.com
 
http://www.oakleysunglassesofficial.us.com
 
http://www.oakleysunglasseswholesalestore.us.com
 
http://www.mulberryhandbagssale.me.uk
 
http://www.michaelkorsoutletonlinefactory.us.com
 
http://www.ralphlaurenoutletclearance.us.com
 
http://www.cheap-nfljerseyschina.us.com
 
http://www.michaelkorshandbagsclearancestore.us.com
 
http://www.raybansunglassesusa.us.com
 
http://www.nbajerseysnike.us.com
 
http://www.truereligionjeans-canada.com
 
http://www.longchamppascher.fr
 
http://www.uggoutletstoress.us.com
 
http://www.ralphlaurenpoloshirt.us.com
 
http://www.pandoracharmsofficial.us.com
 
http://www.raybanssunglassesoutlets.us.com
 
http://www.canadagoosejackets.me.uk
 
http://www.oakleysunglassescheapsale.us.com
 
http://www.uggsbootsclearance.us.com
 
http://www.michaelkorsoutletonlineus.us.com
 
http://www.sunglassesrayban.org.uk
 
http://www.coach-factoryoutlets.us.org
 
http://www.swarovski-outlets.us.com
 
http://www.pandoraoutlets.us.org
 
http://www.michaelkorsoutletmks.us.com
 
http://www.montblancpensoffcial.us.com
 
http://www.poloralphlaurenwholesale.us.com
 
http://www.montblanc-pensoutlet.us.com
 
http://www.christian-louboutin-heels.com
 
http://www.cheapjerseyswholesale.org
 
http://www.converseshoes.us.com
 
http://www.raybansunglasses-sales.us.com
 
http://www.raybansunglassesofficialsite.us.com
 
http://www.poloralphlaurenofficial.us.com
 
http://www.raybansunglasseshut.us.com
 
http://www.nikeoutletonline.us.org
 
http://www.conversestar.com
 
http://www.nikeairmax-90.org.uk
 
http://www.michaelkorsbagss.co.uk
 
http://www.valentinooutlet.us.com
 
http://www.lakersjerseys.us.com
 
http://www.uggoutletonline-clearance.us.com
 
http://www.nfljerseyss.us.com
 
http://www.coachoutlet-canada.ca
 
http://www.nikean.com
 
http://www.moncler-jackets.co.uk
 
http://www.michaelkorsoutletnew.us.com
 
http://www.pandoracharmssaleclearances.co.uk
 
http://www.coachoutletonlinecoachoutlet.us.com
 
http://www.oakleysunglassesusa.us.com
 
http://www.uggblackfridays.us.com
 
http://www.kicksnice.com
 
http://www.chromeheartsoutletstore.us.com
 
http://www.coachoutletstores.eu.com
 
http://www.ralphlauren-poloshirts.org.uk
 
http://www.longchamphandbagsuk.me.uk
 
http://www.jordanshoesclearance.us.com
 
http://www.coach-handbags.us.com
 
http://www.ferragamoshoesofficial.us.com
 
http://www.michaelkorsoutlet-storesofficial.us.com
 
http://www.michaelkorsoutletnyc.us.com
 
http://www.michael-korsoutletuk.me.uk
 
http://www.birkenstocksandals.me.uk
 
http://www.coachfactoryoutletclearance.us.com
 
http://www.canadagooseoutletstore.ca
 
http://www.timberlandboots.net
 
http://www.katespadeoutletonlinestore.us.com
 
http://www.airjordan4.org
 
http://www.raybansunglasses2.us.com
 
http://www.linksoflondon.org.uk
 
http://www.fitflopssale.in.net
 
http://www.nikeairmax-90.me.uk
 
http://www.oakleysunglasseswholesaleauthentic.us.com
 
http://www.cheapjordansfreeshipping.us.com
 
http://www.nikerosheone.us
 
http://www.cheapoakleysunglassesformen.us.com
 
http://www.christianlouboutin-outletsale.us.com
 
http://www.swarovski-outlet.us.com
 
http://www.mulberryhandbagss.org.uk
 
http://www.christianlouboutin-outlet.me.uk
 
http://www.oakleysunglassesoak.us.com
 
http://www.oakleysunglasseswholesalechina.us.com
 
http://www.chromeheartsoutlet.com.co
 
http://www.kevindurantshoes.net
 
http://www.cheapsnapbacks.net
 
http://www.polooutletfactorystore.us.com
 
http://www.pandoracharmsonline.us.com
 
http://www.christianlouboutin-outlet.us.org
 
http://www.michaelkorsoutletclearancer.us.com
 
http://www.poloralph-lauren.us.com
 
http://www.canada--goose.ca
 
http://www.swarovskicrystaluk.me.uk
 
http://www.canadagooseoutletsstore.com.co
 
http://www.ralph-laurenpoloshirts.us.com
 
http://www.uggbootsclearancesale.us.com
 
http://www.michaelkorsoutletcoupons.us.com
 
http://www.nfljerseysofficial.us.com
 
http://www.clearancefitflopssale.com
 
http://www.pandoraoutletinc.us.com
 
http://www.canadagooseoutletusa.us.com
 
http://www.moncler.us.org
 
http://www.uggoutlet-onlineclearance.us.com
 
http://www.nikeshoesstore.us.com
 
http://www.raybans-sunglasses.us.com
 
http://www.michaelkorshandbags.in.net
 
http://www.adidasoutletstore.in.net
 
http://www.mulberry-handbagsoutlet.org.uk
 
http://www.polo-outletonline.us.com
 
http://www.oakleysunglasses-clearance.us.com
 
http://www.pradashoesofficial.us
 
http://www.michae-kors-outlet.ca
 
http://www.canadagooseoutletoutlet.us.com
 
http://www.ferragamooutletstore.us.com
 
http://www.futbol-baratas.com
 
http://www.canadagooseoutletgoose.us.com
 
http://www.coachoutletonlineco.us.com
 
http://www.suprashoes.us.com
 
http://www.nike-airmax2015.us
 
http://www.cheap-jerseyswholesale.us.com
 
http://www.pandorajewelryoutlet.us.com
 
http://www.swarovskioutletstore.us.com
 
http://www.michaelkorsoutletonlinecheap.us.com
 
http://www.shoesjordan.net
 
http://www.michaelkorssuk.org.uk
 
http://www.christianlouboutin-shoes.co.uk
 
http://www.adidasko.com
 
http://www.michaelkorsoutletkors.us.com
 
http://www.toryburchoutletofficial.us.com
 
http://www.truereligion-jeanssale.us.com
 
http://www.cheap-uggsoutlet.us.com
 
http://www.katespadesoutletonlinestore.us.com
 
http://www.nfljerseysfactorystore.us.com
 
http://www.pumaoutlet-online.com
 
http://www.christianlouboutin-shoes.us.org
 
http://www.coachfactoryoutlet-sale.us.com
 
http://www.canadagoose-jackets.org.uk
 
http://www.michaelkorsoutletcheapsale.us.com
 
http://www.coach-onlineoutlet.us.com
 
http://www.clevelandcavaliers.us.com
 
http://www.ralphlauren-poloshirts.us.com
 
http://www.coachfactoryoutletshop.us.org
 
http://www.mont-blancpens.com.co
 
http://www.outlettruereligion.in.net
 
http://www.truereligionjeansclearance.us.com
 
http://www.nikeshoes-outlet.us.com
 
http://www.nikeoutlets.us.org
 
http://www.michaelkorsoutletz.us.com
 
http://www.yeezyboost350sale.us.com
 
http://www.coachoutletonline-coachfactoryoutlet.us.com
 
http://www.mulberrybagssale.org.uk
 
http://www.skysneakers.com
 
http://www.mulberrybagsuk.co.uk
 
http://www.ralphlaurenoutletstores.us.com
 
http://www.nikestore-uk.org.uk
 
http://www.dansko-shoes.us.com
 
http://www.uggoutletauthentic.us.com
 
http://www.soccer-shoes.us
 
http://www.long-champsolde.fr
 
http://www.canadagoosecoats.org.uk
 
http://www.ralphlaurenpolo-outlet.us.com
 
http://www.cheapnfljerseysfactorystore.us.com
 
http://www.nike-store.org.uk
 
http://www.oakleysunglassesoakley.us.com
 
http://www.canadagoose-jackets.co.uk
 
http://www.jeanstruereligion.in.net
 
http://www.newbalance2018.com
 
http://www.kobe9elite.us.com
 
http://www.christian-louboutinshoes.us.org
 
http://www.pandoraoutletstore.us
 
http://www.longchamphandbagssale.us.com
 
http://www.nikeairmaxtrainers.co.uk
 
http://www.nikefactoryoutlets.us.com
 
http://www.uggoutletugg.us.com
 
http://www.mbt-shoesoutlet.us.com
 
http://www.rayban-sunglassesoutlets.us.com
 
http://www.uggsoutletstores.us.org
 
http://www.polooutletfactory.us.com
 
http://www.coachoutletonlineshops.us.com
 
http://www.ugg-bootsclearance.us.org
 
http://www.canadagooseoutletstoress.us.com
 
http://www.uggbootsclearance.us
 
http://www.coachfactory-outlets.us.org
 
http://www.michaelkorsoutletonlineofficial.us.com
 
http://www.mcmoutletstore.us.org
 
http://www.canadagoosesoutletstore.com
 
http://www.jordanshoes.us.com
 
http://www.uggsoutletsclearance.us.com
 
http://www.ralphlaurenpolostore.us.com
 
http://www.coachfactoryoutlet-clearance.us.com
 
http://www.michaelkorshandbags-outlets.us.com
 
http://www.maccosmeticsoutlet.us.com
 
http://www.ferragamo.us.org
 
http://www.burberryoutlet.ca
 
http://www.polo-lacostepascher.fr
 
http://www.canadagooseoutletstore.com.co
 
http://www.michaelkorshandbagsoutletstores.us.com
 
http://www.cheapraybansunglasseswholesale.us.com
 
http://www.coachfactoryoutletstore.com.co
 
http://www.burberry-outletstore.in.net
 
http://www.sunglassofficialstore.com
 

Revision as of 15:13, 24 December 2017

OnClientLeave

The script attached to this event fires when a client leaves the module. This can be used to remove any custom creatures spawned because of the appearance of a particular PC or a variety of other things. During this event, the player has already left. All data that pertains to the player is unavailable (GetPCPlayerName, GetPCPublicCDKey, GetPCIPAddress) and the player has become detatched from the character object, hence GetIsPC returns false. If you want any of this information at time of client leave, you must have already stored this information (on client enter is a good time to do this). Also, due to this, no locals can be stored on the PC at this time. If you want to store information pertaining to the player during this event, store it on the module with something to indicate which player and character it is for.

Trigger

Whenever a player logs out of a server or leaves the module. This event doesn't trigger in local/single player game at all.

Function(s)

GetExitingObject() returns the PC who is leaving.

Remarks

Triggers before player exit an Area and in case the player is dead, area's OnExit event won't fire at all. For more info see OnExit.

You can't get any information off the GetExitingObject(), which basically means you can't store, for example, thier location, and get it locally - SetLocalLocation() and GetLocalLocation() respectively. Some informations are however still accessable, namely: GetName, GetLocalInt, GetLocalString, GetLocalFloat, GetLocalLocation (this list is not exhaustive). However, while data can be accessed from local vars, setting local variables in this event doesn't work. To workaround it, you need to set local variable on module with the player ID / name as a part of the variable name, ie. SetLocalInt(OBJECT_SELF,ObjectToString(oPC)+"_exited",TRUE);

Known Bugs

GetPCPlayerName doesn't work properly during this event; GetExitingObject does not return an object that can be saved to the database. See above for reasons, and the other functions that do not return data.

Example

// In the Client Exit, the actual object (now almost like a dead-AI
// NPC) still exsists, but the PC's properties do not.
 
// In this example, we know GetName will work, such as a
// characters name "Hero". If we used GetPlayername(), it
// wouldn't return a valid string, mearly "".
 
// Other things that would be useful might be GetLocalInt(), 
// GetLocalString(), GetLocalLocation() and so on. These might
// be stored to the database, for example, for when they re-log
// into the server next time.
 
void main()
{
    // Valid data we could use:
    object oPC = GetExitingObject();
 
    // If they have an item, of tag SHOUT_EXIT, we shout to the
    // world we have exited. As it is the module shouting, it should 
    // appear as "[SERVER]" as the shouter name.
    if(GetIsObjectValid(GetItemPossessedBy(oPC, "SHOUT_EXIT"))
    {
        // Shout
        SpeakString("Leaving!" + GetName(oPC), TALKVOLUME_SHOUT);
    }
}

See Also

functions: 

GetExitingObject()