Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 03-25-2007, 11:45 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by godofwarares View Post
In GS1:

* I love how when people ask for GS1, everyone gives him GS2 ...
You almost had it right:

HTML Code:
if (created)
{
     this.sethearts = 10;
     this.setsword = 2;
}

if (playerenters)
{
     setstring clientr.setsword,#v(playerswordpower);
     setstring clientr.sethearts,#v(playerfullhearts);
     playerswordpower = this.setsword;
     playerfullhearts = this.sethearts;

     setplayerprop #c,Default stats set!;
}

if (playerleaves)
{
     playerswordpower = strtofloat(#s(clientr.setsword));
     playerfullhearts = strtofloat(#s(clientr.sethearts));
     setstring clientr.setsword,;
     setstring clientr.sethearts,;

     setplayerprop #c,Original Stats Restored;
}
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 04:31 AM.


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