Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-23-2002, 04:33 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Param Problem


Hey, i got this problem with params when using tokenize, could someone explain why these params are read as 0?

NPC Code:

//from another part of the script:
setstring server.hammerresources,sand,0,wood,25,ore,15;
setstring client.makeweapon,hammer;
tokenize #s(server.#s(client.makeweapon)resources);
//end
if (strtofloat(#t(3))>0){
this.recsneeded++;
if (strtofloat(#s(client.wood))>=strtofloat(#p(3))){
this.ok++;
setstring client.wood,#v(strtofloat(#s(client.wood))-strtofloat(#p(3)));
}else setplayerprop #c,You dont have enough recourses!;
}
if (strtofloat(#t(5))>0){
this.recsneeded++;
if (strtofloat(#s(client.ore))>=strtofloat(#p(5))){
this.ok++;
setstring client.ore,#v(strtofloat(#p(5)));
}else setplayerprop #c,You dont have enough recourses!;
}

__________________
maximus_asinus

Last edited by darkriders_p2p; 07-23-2002 at 07:04 PM..
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:30 AM.


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