Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   PlayerWorlds Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=15)
-   -   Two unstick mes? (https://forums.graalonline.com/forums/showthread.php?t=77986)

gemini2 12-20-2007 03:44 AM

Two unstick mes?
 
Is it possible to define two 'unstick me' points? I was planning on having a couple different maps, and was wondering if I could somehow define an unstick me point for each map?

Horrified 12-20-2007 04:03 AM

custom unstick me system?

gemini2 12-20-2007 04:15 AM

Figured :P
kthx

ViperZakuto 12-20-2007 06:10 AM

gk has 6 default unsticks. 1 for main and 1 for each kingdom island.

DustyPorViva 12-20-2007 07:00 AM

It depends on what kind you want... more details?
Do you want one that unsticks you to a random group of locations, or do you want it to unstick depending on something like nearest unstick point?

Curt1zzle 12-20-2007 08:56 AM

Quote:

Originally Posted by DustyPorViva (Post 1364674)
It depends on what kind you want... more details?
Do you want one that unsticks you to a random group of locations, or do you want it to unstick depending on something like nearest unstick point?

I'm going to take a gander and say the latter.

MysticalDragonP2P 12-20-2007 10:02 PM

A custom unstick me would be rather easy and easier to mimic how graal online does it.
He went into enough detail. He said he wanted an unstick me for each map his server has.

DustyPorViva 12-20-2007 10:55 PM

Ah... I had missed that part for some reason. In that case ya, it's very simple to do. Here's something I pulled together... it was quick and I'm not sure if it'll work, but it should give you an idea of what to do... It's not a copy and paste thing, you need to figure it out yourself, or get a scripter to do it:
PHP Code:

function onActionserverside(action,level,newx,newy) {
  if (
action=="warp") {
    
setlevel2(level,newx,newy);
  }
}
//#CLIENTSIDE
function onPlayerenters() {
  if (
player.gmap!=nullthis.lastgmap=player.gmap;
}

function 
onCreated() {
  
/*
    Defining the unstick me points:
    I recommend the unstick me's all on inside levels
    or all on the gmap... warping a player
    to a nw that's on a gmap=breakage.
    this is tailored to interior levels, not on a gmap
  */
  
this.unstickpoints={
    {
map1.gmap,levelinmap1.nw,warpx,warpy},
    {
map2.gmap,levelinmap2.nw,warpx,warpy},
    {
map3.gmap,levelinmap3.nw,warpx,warpy},
    {
map4.gmap,levelinmap4.nw,warpx,warpy}
  }
}
function 
onPlayerchats() {
  if (
player.chat=="unstick me") {
    
player.chat="";
    for (
i=0;i<this.unstickpoints.size();i++) {
      if (
this.lastgmap==this.unstickpoints[i][0]) {
        
triggerserver("gui",name,"warp",this.unstickpoints[i][1],this.unstickpoints[i][2],this.unstickpoints[i][3]);
        break;
      }
    }
  }




All times are GMT +2. The time now is 09:33 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.