Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-02-2002, 08:54 AM
draygin draygin is offline
Telmont Bandit
draygin's Avatar
Join Date: Feb 2002
Location: Ohio
Posts: 2,550
draygin is on a distinguished road
newbie scripter.

Ok I'm really new to scripting and I have an npc document that I swear is from 1.39 I mean it uses stuff like setgifpart etc..

Any how please bare with me as I slaughter and crucify script commands.

I'm trying to set it up so when your hp reaches 0 you get warped to a specified level. This is what I have so far. Sorry in advance its my first attempt at real script aside from clothes changer and details such as lighting effects.

This is what I have so far.
if (playerenters) {toweapons hellwarp;}
if (timeout=.5&&client.hp=0){setlevel2 underworld.nw,30,30;}

(toweapons and hellwarp are just temporary to test offline.) Obviously this doesnt work. I was talking to a friend and he said to use strtofloat(#s(client.HP))=0 although what some of those commands beats me since I cant find them on my npc document. I dont want some one to do the code. But maybe suggest looking into some alternate command. Etc..
(also if some one has an up to date npc document I'd appreceate it)
__________________

I stole Spanky's gold!
Reply With Quote
 


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 02:39 PM.


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