![]() |
string manipulation
#T and #e I've read how the wiki says to use them, but I can't get it right x_X
PHP Code:
|
Hmm, I am not sure, but you might try
NPC Code: |
Quote:
|
You are also just doing
PHP Code:
PHP Code:
|
Welll. Ok here it goes.
First of all the T-3a scriptline and the T-4c SL are interlocked with eachother, this means you have to devide them with a sub script line (such as a simple action command), like you split them apart. Its kinda like shoe strings, you cant walk with both foot's shoes strings tied together, so you tie them seperatly. PHP Code: //GS1 if (startswith(coat,#c)) { if (playerenters) { playlooped fire-torch2.wav; > (Sub SL) } setplayerprop #c(1),#T(#e(4,-1,#c)); if (created) { y=56.6; setcoloreffect 0,1,0,0.2; drawaslight; }!!(7x(4x+5=3+2x))x a+b=c/Dtall;[Alphatest] } //my gs2 nightmare if(str.starts("coat")) { player.colors[1]=?????????? } Second I have no idea what im talking about |
Quote:
PHP Code:
|
Quote:
|
soooo why doesn't this work?
PHP Code:
|
... Because /skin is 5 characters long.
If you include the space, 6 characters long. |
Quote:
Quote:
|
Quote:
|
Also in substring() you need to tell it how long as well.
NPC Code: |
Quote:
PHP Code:
|
oh, my bad.
well thats great :) |
All times are GMT +2. The time now is 09:25 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.