![]() |
NPC-Servers have minds of their own :)
There will be times I'lls cript somethign and it wont work, I come back a few days later, and the exact code will work. It's really quite odd. Stefan, does showtext work serverside? |
When I try to triggeraction from clientside to serverside and write the mineral count to clientr's, it does not work. I do it as I would do it with client strings.
|
Clientr's
Theres something wrong with this script, when uploaded, it never adds the clientr's. It never adds +1 to the clientr's. Everytime i type Show Minerals it shows 0 0 0 0 for the clientr's. I've never used clientr's. What is wrong with the script?
NPC Code: |
For one, this. vars set on the server can not be read from the client. It is the same the other way around. This. vars set on the client can not be read on the server.
Second, to set the value of a string to a var, you do NPC Code: Just doing it without strtofloat won't work, nor will just the name of the string. Third. For the triggeraction, just do NPC Code: Then, in the serverside part, you can pick it up with actionserverside, and check #p(0) for mined. Also, why would you check each tile individually? And, you shouldn't have to use tiles[] anymore, you already set the tile in the this.tile var. Just make an array with all the tiles you want to check for, and do NPC Code: |
im not that advanced into scripting yet.
|
mineral's count?
NPC Code: |
I posted an easier solution in the Miner's thread that you added to spam the NPC Catagory..
|
BRILLIANT... Why didn't he think of it earlier.... Erm... Just hope he uses it... Hope he at least credit us for our patience with his spamming thread plans.
|
sorry for the messy merge, the system here for merging threads didn't work the way I had expected it to, but the fact of the matter is, don't do this again please =/ just post one large thread with all your questions or I shall delete them next time
|
Quote:
also, by "bored", stefan means either, when the npc server has nothing to do, or he means when it just sends everything to the clientside. |
Wait this is so confusing, I remember being the first person to reply and me and osrs got into a battle at the beggining about this, I can't remember stefan posting before me, nor do I remember me spamming, what is going on?
|
All gman's threads were merged into one.
|
Now it looks like I just spammed, great moving :)!
|
Yeah, it totally flipped.
Bad remix ... |
like the quantum leap remix i heard the other day! *shudders*
|
| All times are GMT +2. The time now is 09:48 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.