Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-28-2012, 12:14 AM
Kiwi27 Kiwi27 is offline
Not the fruit.
Kiwi27's Avatar
Join Date: Mar 2011
Location: New Zealand
Posts: 173
Kiwi27 will become famous soon enough
Over & Under

There should be a way you can make so if the player is walking from the left or right, they go over an NPC, and if they come from above or below it they walk under it, and vice versa.

That's all.
__________________
Reply With Quote
  #2  
Old 10-28-2012, 12:16 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,745
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
it has been a while I have scripted but I thought setshape2 could achieve this?
__________________
Save Classic!
Reply With Quote
  #3  
Old 10-28-2012, 12:23 AM
Kiwi27 Kiwi27 is offline
Not the fruit.
Kiwi27's Avatar
Join Date: Mar 2011
Location: New Zealand
Posts: 173
Kiwi27 will become famous soon enough
Idk. I remember reading a thread a while ago where someone was asking if it was possible, and the answer was no. Sorry if I'm wrong.
__________________
Reply With Quote
  #4  
Old 10-28-2012, 12:24 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
Quote:
Originally Posted by Kiwi27 View Post
There should be a way you can make so if the player is walking from the left or right, they go over an NPC, and if they come from above or below it they walk under it, and vice versa.

That's all.
I achieved this with no npc server in gs1. It really depends on if you're doing this for a single player instance or a normal level.

If you're doing it for a single player instance you can just use drawoverplayer() and what not, for multiple players I had a weapon that called showani to draw a replica of the player over the player that's shown to everyone, and then you can control on which layer the player draws. It's not the best method but it works. I'm sure with the resources gs2 and a npc have to offer there's a much more elegant solution but I haven't really played with all of it that much.
__________________
Quote:
Originally Posted by Crono View Post
No look at it, Stefan is totally trolling Thor. Calling Classic a "playerworld" (something it's not supposed to be) is the ultimate subtle insult to a true fan.

It's genius.
Reply With Quote
  #5  
Old 10-28-2012, 12:27 AM
Kiwi27 Kiwi27 is offline
Not the fruit.
Kiwi27's Avatar
Join Date: Mar 2011
Location: New Zealand
Posts: 173
Kiwi27 will become famous soon enough
Ah. I was wrong, nevermind. I just found the thread. Not sure why it stuck in my mind that you couldn't though. http://forums.graalonline.com/forums...hp?t=134261769
__________________
Reply With Quote
  #6  
Old 10-28-2012, 01:24 AM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
you know i could have sworn i saw this back in 2001 on some version of sanstrata...
__________________
Reply With Quote
  #7  
Old 10-28-2012, 01:35 AM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
it is possible to do such a thing on your own. somewhere on my computer i still have it i think
__________________
MEEP!
Reply With Quote
  #8  
Old 10-28-2012, 02:15 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
There are two ways to do it, neither are very attractive.

The first way, which is the smoothest way, is to do the detections yourself. The problem with this method is that it only applies to you. Other players will not reflect their status with the NPC(let's say a bridge in this case). If you touch the bridge and you make the bridge draw over you, it will draw over ALL other players. This method works fine offline though.

The second way is to use attachplayertoobj(), the benefit is that it remedies the issues with the above. Players are attached to the NPC, so if a player is on the bridge and the bridge is drawn over your player, so will the players on the bridge. The issue with this method though is it's serverside, so there is substantial lag when trying to attach/detach players. For instance when you touch the bridge to walk over it, you will keep going, then BAM it'll snap your player back to the end of the bridge because it has finally synced your player with the server. This is fairly annoying, imo.

The only way to resolve this would to be able to change the layers of players themselves.
Reply With Quote
  #9  
Old 10-28-2012, 02:59 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
I think my showani solution is worth considering.
__________________
Quote:
Originally Posted by Crono View Post
No look at it, Stefan is totally trolling Thor. Calling Classic a "playerworld" (something it's not supposed to be) is the ultimate subtle insult to a true fan.

It's genius.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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