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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
@create to already existing items
Author Message
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #1
@create to already existing items
Hi all Bye, i just add in my scipt this part:
ON=@CREATE
COLOR=0483
HITPOINTS=60
tag.hpregen=4
tag.stamregen=4
tag.manaregen=4
tag.timeregen=4

So could some1 share function that would add :
tag.stamregen=4
tag.manaregen=4
tag.timeregen=4
to items who already exist in world?
Thanks, and sorry for my bad english Confused
08-24-2012 09:13 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: @create to already existing items
example:

[function givetags]
forinstances i_katana
tag.stamregen=4
tag.manaregen=4
tag.timeregen=4
endfor
08-24-2012 09:28 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: @create to already existing items
I am using this for armors and all armors have almost different stam, mana, hm and time regen could that funtion be made for first name example all copper items ?
would have
tag.hpregen=4
tag.stamregen=4
tag.manaregen=4
tag.timeregen=4
and iron items would have
tag.hpregen=3
tag.stamregen=3
tag.manaregen=3
tag.timeregen=3
08-24-2012 09:31 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: @create to already existing items
[function givetags]
forinstances i_katana
if strmatch(*copper*,<baseid>)
tag.hpregen=4
tag.stamregen=4
tag.manaregen=4
tag.timeregen=4
elif strmatch(*iron*,<baseid>)
tag.hpregen=3
tag.stamregen=3
tag.manaregen=3
tag.timeregen=3
endif
endfor

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-24-2012 10:14 PM
Find all posts by this user Like Post Quote this message in a reply
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #5
RE: @create to already existing items
Not working Confused
It's not adding tag to item's who already exist on world... Confused
(This post was last modified: 08-25-2012 12:35 AM by Alias.)
08-25-2012 12:35 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #6
RE: @create to already existing items
you can also give tags under item definition, this tags will applied all existing items and not saved in save files.

example:

[itemdef i_katana_super]
id=i_katana
name=super katana
tag.hello=3
tag.hey=5
08-25-2012 12:38 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #7
RE: @create to already existing items
ok ty for helping when i will be home i will test it
Jup this works thanks Wink
(This post was last modified: 08-25-2012 03:54 AM by Alias.)
08-25-2012 12:52 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #8
RE: @create to already existing items
You will have to add the function in @create within the object's [itemdef], unfortunately @create does not trigger in a [typedef], so virtually it does not work in TEVENTS or TYPE on any item. Shaklaban has a good suggestion, I would try it.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
08-27-2012 11:56 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Alias
Journeyman
*

Posts: 107
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #9
RE: @create to already existing items
What Shaklaban sad is working perfecly
[itemdef i_katana_super]
id=i_katana
name=super katana
tag.hello=3
tag.hey=5

But thanks anyway Smile
08-28-2012 01:57 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #10
RE: @create to already existing items
(08-27-2012 11:56 PM)Skul Wrote:  You will have to add the function in @create within the object's [itemdef], unfortunately @create does not trigger in a [typedef], so virtually it does not work in TEVENTS or TYPE on any item. Shaklaban has a good suggestion, I would try it.

its a new method im not sure when its added, i've seen this method in scp (used in item properties).
08-28-2012 02:03 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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