FOnline Development > General Discussion
Script Base
ronon dex:
What is a script for buying a base? could someone help me with this?
JovankaB:
Faction/bases is a 2238 feature. I'm not sure if SDK has something similar :?
White150:
http://forum.newfmc.pl/index.php?topic=222.0
muhoooool:
Hello,
This Script from the site above works.
Though how to change
if (pid==PID_PRZEDMIOTU)
to multiple amounts?
would this be?
if (pid==PID_PRZEDMIOTU, 4 () )
Thanks
JovankaB:
--- Quote from: muhoooool on June 25, 2012, 08:18:24 pm ---Hello,
This Script from the site above works.
Though how to change
if (pid==PID_PRZEDMIOTU)
to multiple amounts?
would this be?
if (pid==PID_PRZEDMIOTU, 4 () )
Thanks
--- End quote ---
You mean how to make it work for a few different item PIDs?
--- Code: ---if( pid == PID_SOME_PID || pid == PID_SOME_OTHER_PID )
--- End code ---
which means: if pid is equal to PID_SOME_PID or PID_SOME_OTHER_PID
or
--- Code: ---if( pid >= PID_SOME_PID_RANGE_START && pid <= PID_SOME_PID_RANGE_END )
--- End code ---
which means: if pid is in a range from PID_SOME_PID_RANGE_START to PID_SOME_PID_RANGE_END
Of course you have to use existing (defined) pid names,or just numbers.
Navigation
[0] Message Index
[#] Next page
Go to full version