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






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any questions/problems
Author Message
Awaken
Apprentice
*

Posts: 30
Likes Given: 10
Likes Received: 4 in 4 posts
Joined: Sep 2013
Reputation: 0



Post: #1
Any questions/problems
1 - How do if you are statf_freeze and @gethit damage, the flag freeze donĀ“t remove. I try to script a Paralyzing Blow

2 - Any trigger when player move. Example: When player move his char 1 tile. Any trigger for this?

3 - the leather armor need a boots to give the full Armor of this leather armor. How change this?, no need boots for leather armor for give the correct AR to player.


Thanks
09-27-2013 05:24 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: Any questions/problems
Here is one idea for Paralyzing blow:

Code:
[ITEMDEF i_parablow_timer]
ID=01d8c
NAME=paralyzing blow timer
TYPE=t_eq_script
LAYER=30
WEIGHT=0
ON=@Create
   ATTR=attr_decay|attr_can_decay
ON=@Equip
   ATTR=attr_decay|attr_can_decay
   IF (<CONT.NPC>)
      MORE1=6 //NPCs are paralyzed for 6 seconds
   ELSE
      MORE1=3 //Palyers paralyzed for 3 seconds
   ENDIF
   CONT.EMOTE get paralyzed by the last attack
   TIMER=1
ON=@Timer
   IF (<MORE1>) && !(<CONT.FLAGS> & statf_dead)
      CONT.ACTION = -1 //stop all actions
      CONT.FLAGS |= statf_freeze //freeze the player/NPC
      MORE1 -= 1 //decrement a counter
      TIMER=1 //reset the timer
      RETURN 1
   ELSE
      CONT.FLAGS &= ~statf_freeze //remove the freeze flag
      REMOVE //remove this paralyzing blow memory
   ENDIF

2. The Trigger is @Step

3. Need a better explanation of what you want
(This post was last modified: 09-27-2013 05:49 AM by RanXerox.)
09-27-2013 05:48 AM
Find all posts by this user Like Post Quote this message in a reply
Awaken
Apprentice
*

Posts: 30
Likes Given: 10
Likes Received: 4 in 4 posts
Joined: Sep 2013
Reputation: 0



Post: #3
RE: Any questions/problems
Thanks for all.
Edit:
1 - The problem in this Paralyzed blow if the timer... if you harm the freeze remove and renew when the timer is 0, no instant. :/
3 - If you equip a full leather armor (cap, gorget, gloves, sleeves, tunic and leggings). The leather armor is 15 (example). When equip de armor, in the character the real armor is 13 o 14, less than the real leather armor.

More questions.
4 - How do a custom trigger? Any example?

Thanks for all
(This post was last modified: 09-27-2013 06:14 AM by Awaken.)
09-27-2013 05:56 AM
Find all posts by this user Like Post Quote this message in a reply
sco
Apprentice
*

Posts: 38
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Mar 2012
Reputation: 7

Elantharil

Post: #4
RE: Any questions/problems
@1.: add this event to the paralyzed char:
Code:
[events e_no_unpara]
on=@gethit
argn2 |= dam_nounparalyze
(This post was last modified: 09-27-2013 08:41 AM by sco.)
09-27-2013 08:40 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #5
RE: Any questions/problems
correct me if i am wrong, but isnt the armor calculated from the average of the individual part? what i mean, is the gorget prolly has a lower ar than the chest does, not all pieces have an equal amount to others, so if ur chest piece is 12, but ur gorget is 6, then the ending ar would not be 12.

[Image: matts_siggy.gif]
09-27-2013 12:27 PM
Find all posts by this user Like Post Quote this message in a reply
sco
Apprentice
*

Posts: 38
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Mar 2012
Reputation: 7

Elantharil

Post: #6
RE: Any questions/problems
Probably it's because of the shoes. Shoes make up 5% of your AR. Script shoes with 15 AR and equip them, that might correct it.
(This post was last modified: 09-27-2013 04:34 PM by sco.)
09-27-2013 04:32 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: Any questions/problems
A custom trigger example :

PHP Code:
[FUNCTION testTrigger]
//There are also TAT_AS_ARGS for string and TAT_AS_ARGO for object
//They are flags so they can be "combined"
local.sum=<TRIGGER @Custom,<def.TAT_AS_ARGN>,1,2>
serv.log <dlocal.sum

//You have to install this event for triggering @Custom
[EVENTS customTrigger]

ON=@Custom
return <argn1>+<argn2>   //argn1 is 1 , argn2 is 2 , return 3 . Trigger can return only numbers. 
09-27-2013 11:40 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: #8
RE: Any questions/problems
(09-27-2013 11:40 PM)darksun84 Wrote:  A custom trigger example :

PHP Code:
[FUNCTION testTrigger]
//There are also TAT_AS_ARGS for string and TAT_AS_ARGO for object
//They are flags so they can be "combined"
local.sum=<TRIGGER @Custom,<def.TAT_AS_ARGN>,1,2>
serv.log <dlocal.sum

//You have to install this event for triggering @Custom
[EVENTS customTrigger]

ON=@Custom
return <argn1>+<argn2>   //argn1 is 1 , argn2 is 2 , return 3 . Trigger can return only numbers. 
Cool drk!

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.
09-28-2013 01:38 AM
Find all posts by this user Like Post Quote this message in a reply
Awaken
Apprentice
*

Posts: 30
Likes Given: 10
Likes Received: 4 in 4 posts
Joined: Sep 2013
Reputation: 0



Post: #9
RE: Any questions/problems
Oh, thanks all! Big Grin
More Questions!

5 - i need create a meditation skill like RunUO. You are stay in the position if you move you cancel meditation state. Confused When trigger @step and action=meditation?

6 - How changes the % of armor give. Example: If you equip a platemail armor, it give a 50% of armor. Make custom % of armor give.

Thanks all!
09-30-2013 03:34 AM
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)