![]() |
Gift: Tile Finder
A simple tile finder, press the right and the left keys to scroll through the tiles or chat a number less than 4095 and greater than 0 and you can easily find the tile you need. Script could use some improvements, I will prolly improve it later on.
NPC Code: |
Cool
|
Goboom, just curious, but...
Why did you put; if (strequals(#c,#c)) { ? |
Quote:
|
*The following is a guess*
I found it easier for styling issues for instead of removing the strequals, (used for debugging a script), you could just leave it in there and replace the second string with whatever the first string was. It's easier than just restyling the whole script by removing that line. (They don't have 'style' buttons online) |
Quote:
There is no style button really but it is possibile to style your scripts online. Quote:
|
Or you could just format them correctly as you write them, thus saving yourself a great deal of trouble.
|
Nice :)
Here is a gift too, basic, but nice: NPC Code: |
Quote:
I KNOW for a fact "if" by itself would work fine, i was just wondering if there's acutally a viable reason for doing this... |
Quote:
|
Quote:
NPC Code:// Both are being checked. Think of it this way: If thing is A, how could it ever be B? So why should you check it twice if thing is A? |
haha, rick. i beat you by one minute.
|
According to KSI-GS:
Quote:
|
got it
|
Another reason:
NPC Code: If the letter's A, you'll also get CDEFGHIJKLMNOPQRSTUVWXYZ. Good way: NPC Code: This bugged me for a while in C++, until i showed the scripts to Tseng and he said he liked if else better, i used that and it was fixed . Me < Tseng |
| All times are GMT +2. The time now is 10:31 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.