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 09-26-2001, 09:35 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
Another Script That will Not work but this is harder..lol

first npc
if (playersays(Buy Pick)&& playerrupees>=39){toweapons Pick;playerrupees-=40;
setstring client.pickstrength,#v(strtofloat(#s(client.pickst rength))+100); }


if (weaponfired) {
setstring client.pickstrength,#v(strtofloat(#s(client.pickst rength))-.4)
triggeraction playerx+.5+vecx(playerdir)*2,playery+1+vecy(player dir)*2,mining,;
setani jaxe,pickaxemetal.png;}


OK now the first part works but this does not

if (created){setimg jrock.gif;this.power=100;timeout=.1}
if (timeout){

if (actionmining) {
this.power -= 5;
if (this.power<=0) {
setstring client.playeriron,#v(strtofloat(#s(client.playerir on))+1);
destroy;}}timeout=.1}


Should i even need the timeouts.. But the second part does not work the trigger action does not work ..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
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 11:55 PM.


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