Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-19-2005, 10:05 AM
kunikunze kunikunze is offline
Registered User
Join Date: Aug 2005
Location: Germany
Posts: 2
kunikunze is on a distinguished road
Exclamation Event Level Sumo-Pot

I designed a new Event Level for Classic.
Can someone help me with the script?

Its a similar level to snowpot on Unholy Nation.
The player is not allowed to touch the water while he tries to
get the other player with pots into it!

How to express the following thing:

If (playertoucheswater)

{setlevel XXX}

The eventlevel is in the attachement!
-.Thank You.-
Attached Files
File Type: zip sumopot.zip (1.2 KB, 196 views)
Reply With Quote
  #2  
Old 09-19-2005, 06:00 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
It's against the rules to give full scripts, so I'll give you some hints...
I'll assume you'll be using GS1.

Use a clientside timeout loop to check if the player is swimming. Can use:
PHP Code:
if (strequals(#m,swim)) 
or:
PHP Code:
if (swimming
If they are swimming, an easy way to change their spot is to simply change playerx and playery to a location on the level that is not part of the arena. If you want them warped to a different level, you will have to use triggeraction, since setlevel2 is a serverside command.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 09-20-2005, 02:35 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by napo_p2p
It's against the rules to give full scripts, so I'll give you some hints...
I'll assume you'll be using GS1.

Use a clientside timeout loop to check if the player is swimming. Can use:
PHP Code:
if (strequals(#m,swim)) 
or:
PHP Code:
if (swimming
If they are swimming, an easy way to change their spot is to simply change playerx and playery to a location on the level that is not part of the arena. If you want them warped to a different level, you will have to use triggeraction, since setlevel2 is a serverside command.
Well, in GS2 you could do
PHP Code:
if (player.ani == "aniname, 'swim' or 'dead' for instance") {
  
// place your triggeraction to serverside here, then check the gani again serverside and warp out the player serverside :D

Have that in a timeout loop, called every .1 or .05 seconds, and that _should_ work.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #4  
Old 09-27-2005, 04:06 PM
kunikunze kunikunze is offline
Registered User
Join Date: Aug 2005
Location: Germany
Posts: 2
kunikunze is on a distinguished road
Question

erm ok, but .... how to set a timeout loop?
i found a flag called "playerswim" but it seems not to work
I tried

PHP Code:
if (playerswim)
{
setlevel2 .....} 
i am no admin i cant test it serverside.

the "strequals" flag u mentioned doesnt work too.
Reply With Quote
  #5  
Old 09-27-2005, 06:25 PM
Torankusu_2002 Torankusu_2002 is offline
'been round.
Torankusu_2002's Avatar
Join Date: Nov 2001
Posts: 1,246
Torankusu_2002 is on a distinguished road
triggeractions work offline.

It's better to check for the ani, but you will have to find the gani classic uses for swim because I think most of them are differently named. Look in levels/ganis anything with classic_ is a gani for classic playerworld.

But,
__________________
torankusu's
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:17 AM.


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