secwind801 發表於 2010-7-24 07:32:55

疊加補品v1

本帖最後由 secwind801 於 2010-7-24 09:02 AM 編輯

腳本名稱:疊加補品v1
作者:我 代稱 煌小玥
適合類型:有設定使用道具延遲0.5s以上的
說明:
在道具後面加上傳呼指令
callfunc "『C』疊加補品",100,5,100,2,10,-1;
 ,HP,+n%,SP,+n%,疊加秒數,特效;

使用補品第一次後 時間內 每使用一次 增加N%

依照範例
補HP100第一次後10秒內再使用 補100+5%=105 再使用=110 → =115
補SP100第一次後10秒內再使用 補100+2%=102

離第一次使用時間10秒到了
補100重新計算

建議 使用道具延遲 高於0.5s
或是疊加時間1秒就好

防止內掛喝水連按洗補



圖片不會放 放不上來 用連結的
http://www.wretch.cc/album/show.php?i=secwind801&b=1&f=o1590109316.jpg&p=0


**** Hidden Message *****

哆啦ˇ 發表於 2010-7-24 08:03:46

I do not understand the explain


To see if there are picture

goddameit 發表於 2010-7-24 11:25:42

回復 2# 哆啦ˇ


    使用這項補品
x秒內 它會以y函數增加 恢復量

sb66665112 發表於 2010-7-24 15:48:27

其實用這個的話
就可以不必到db去設定---------------------------------------

*setitemscript(<item id>,<"{ new item script }">{,<type>});

Set a new script bonus to the Item. Very useful for game events.
You can remove an item's itemscript by leaving the itemscript argument empty.
Returns 1 on success, or 0 on fail (item_id not found or new item script is invalid).
Type can optionally be used indicates which script to set (default is 0):
0 - Script
1 - OnEquip_Script
2 - OnUnequip_Script

Example:

setitemscript 2637,"{ if(isequipped(2236)==0)end; if(getskilllv(26)){skill 40,1;}else{skill 26,1+isequipped(2636);} }";
setitemscript 2637,"";

---------------------------------------

secwind801 發表於 2010-7-24 16:14:33

Example:
setitemscript 20002,"『C』疊加補品",100,5,100,2,10,-1;

怎麼用_我稍微測試了_不會用

sb66665112 發表於 2010-7-24 16:19:54

本帖最後由 sb66665112 於 2010-7-24 05:02 PM 編輯

所謂的New Item Script
可以用callfunc ((如果"字串"不行可以用set達到目的))
type就是後面的那三個{}
補品執行是第一個{}
就填0(改)
就這樣

angelheart 發表於 2010-7-24 17:00:04

額。我也有點沒理解呢- -
難道只能用到有延遲的物品上嗎?
沒有延遲的就不能用?

secwind801 發表於 2010-7-24 17:28:45

可以用呀..
只是內掛喝水會佔盡優勢

"按越多下疊加越多"

secwind801 發表於 2010-7-24 17:33:21

回復 6# sb66665112

有範例嗎
只看到幾個字和語法
我實在很難懂

sb66665112 發表於 2010-7-24 22:27:25

setitemscript(501,"{ heal 50,50; }",0);
這樣使用道具501
就會回復血量50 魔力50

雨過天晴 發表於 2010-7-28 20:18:15

感謝大大無私分享
很有趣的腳本 來看看

good321 發表於 2011-1-16 11:37:10

我看不太懂@@ 怎麼用@@

我填了 寫了 怪怪的

lsps60912 發表於 2011-3-26 15:13:35

I do not understand the explain


To see if there are picture

qqaz60819 發表於 2011-6-21 22:47:45

看不懂 =   =

a26423821 發表於 2011-6-24 00:35:39

這還滿好用的可以阻絕內掛喝水@@
頁: [1] 2
查看完整版本: 疊加補品v1