The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This is an easy one :D i think
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
This is an easy one :D i think
Guys hi again, i know you might have seen a lot of post from me in the last month xDD... im really really interested about solving some issues and learning about sphere.... this is what i want to do and this is the first time i try something like this:

there are some trees in the game with T_NORMAL Type set, so i want to use one of them really similar to t_tree using lumberjacking.

first at all i got the ID of the item (tree) and i modified the type from t_normal to t_tree_x
then i went to typedefs and added the new t_tree_x type

then i went to sphere_region and into the lumberjacking section i added this:
[REGIONRESOURCE mr_tree_x]
AMOUNT=2,5
REAP=i_log_x
REAPAMOUNT=20
SKILL=65.0,90.0
REGEN=60*60*10

[REGIONTYPE r_tree_x t_tree_x]
RESOURCES=80.0 mr_nothing
RESOURCES=20.0 mr_tree_x

later on i went to terrains at sphere_types.scp and added

[TYPEDEF t_tree_x]
TERRAIN = IDofTerrain

after that, opened the sphere_mapx.scp
and in the corresponding AREA i added r_tree_x to the events

so i suppose every needs are taken so i can start with the script
but i got surprised when i found two similar triggers i could use.
ItemTargon_Item and Targon_Item, couldnt understand the difference betweeen each other but lets say i use the second one.

so i need a little help with the beggining of the script
could it be something like this?

[Typedef T_EVENT_TREE_X]

ON=@TargON_Item
IF (<type> == t_weapon_axe) && (<argo.type> == t_tree_x) //
SERV.B <type> <argo>
say lalalallalalal
return 1
endif

is everything correct?
i know its not because when i tried it nothing happend Smile
but i know it will be easily fixed with you help.

Thank you very much!!!
(This post was last modified: 06-13-2014 02:32 AM by kn4tseb.)
06-13-2014 02:30 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
This is an easy one :D i think - kn4tseb - 06-13-2014 02:30 AM
RE: This is an easy one :D i think - XuN - 06-13-2014, 08:07 PM
RE: This is an easy one :D i think - XuN - 06-14-2014, 04:02 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)