UID46435
帖子
精華
主題
積分246
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限5
註冊時間2007-12-27
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 怒 2014-1-14 10:10 PM |
---|
簽到天數: 43 天 連續簽到: 1 天 [LV.5]常住居民I
|
樓主 |
發表於 2009-5-11 16:28:19
|
顯示全部樓層
2# 海神夜
這位大哥= = 你沒有幫到忙了 ... 我意思是
如果這樣
mes "[商城點數系統]";
mes "目前點數價格『10天果:20點數』";
mes "請輸入要購買的點數數量";
mes "如要取消請輸入小於10的數字";
mes "最少購買10P,最多無限制";
mes "購買點數同時贈送10%紅利點數";
mes "請問您要購買多少的點數呢?";
input [email=$@gash]$@gash[/email];
if([email=$@gash<10]$@gash<10[/email]) goto G_end;
if (countitem(607) < [email=$@gash*20]$@gash*20[/email]) goto NoZeny;
next;
mes "您購買的點數數量『^FF0000"[email=+$@gash+]+$@gash+"P^000000[/email]』";
mes "所需要天果『^FF0000"[email=+$@gash*20]+$@gash*20[/email]+"顆^000000』";
mes "您確定您要購買嗎?";
switch(select("確定購買","不要購買"))
{ case 1:
set item,zeny-$@gash*20;
set #SHOP_POINTS,#SHOP_POINTS+$@gash;
set #BONUSPOINTS,#BONUSPOINTS+([email=$@gash/10]$@gash/10[/email]);
mes "您購買完畢,點數已經進入您的帳號!";
mes "購買點數:^FF0000"[email=+$@gash+]+$@gash+"P^000000[/email]";
mes "紅利點數:^FF0000"+([email=$@gash/10)+]$@gash/10)+"B^000000[/email]";
mes "點數總結:^FF0000" + #SHOP_POINTS + "P^000000";
mes "紅利總結:^FF0000" + #BONUSPOINTS + "B^000000";
case 2: close; }
NoZeny:
next;
mes "抱歉,你沒有足夠的天果";
close;
G_end:
close;
}
set item,zeny-$@gash*20; 這要如何修改 才能依照比例來給= =?
可是我改依改 發現不是錯誤 就是 部會扣天果
誰能交我 如果我要設定 這樣 天果兌換點數 依次兌換多少 扣除天果多少
還是能設定在紫色箱子裡面 打開獲的點數 不一定多少 設定多少到多少 然後 點數會 匯入人物 可是這樣子 他紅利點數好像會不在 .... |
|