查看: 1843|回復: 15

[交流] 生怪問題

[複製鏈接]
發表於 2011-10-2 12:27:17 | 顯示全部樓層 |閱讀模式
[隱藏]

馬上註冊,結交更多好友,享用更多功能,讓你輕鬆玩轉社區。

您需要 登錄 才可以下載或查看,沒有帳號?註冊

x

Ask("你想在活動地圖放怪嗎?", "5隻白虎","5隻朱雀","5隻玄武","5隻神龍", "5隻邪化玄武", "停止生怪", "取消")
if GetChoice() == 1 then
        SetWorldFlag("SummonEventMonster1", 5)
        ChangeMaxChild(243, -180000, 136000, 5)
elseif GetChoice() == 2 then
        SetWorldFlag("SummonEventMonster2", 5)
        ChangeMaxChild(243, -180001, 136000, 5)
elseif GetChoice() == 3 then
        SetWorldFlag("SummonEventMonster3", 5)
        ChangeMaxChild(243, -180002, 136000, 5)
elseif GetChoice() == 4 then
        SetWorldFlag("SummonEventMonster4", 5)
        ChangeMaxChild(243, -180003, 136000, 5)
elseif GetChoice() == 5 then
        SetWorldFlag("SummonEventMonster5", 5)
        ChangeMaxChild(243, -180004, 136000, 5)
elseif GetChoice() == 6 then
        SetWorldFlag("SummonEventMonster1", 0)
        SetWorldFlag("SummonEventMonster2", 0)
        SetWorldFlag("SummonEventMonster3", 0)
        SetWorldFlag("SummonEventMonster4", 0)
        SetWorldFlag("SummonEventMonster5", 0)
        ChangeMaxChild(243, -180000, 136000, 0)
        ChangeMaxChild(243, -180001, 136000, 0)
        ChangeMaxChild(243, -180002, 136000, 0)
        ChangeMaxChild(243, -180003, 136000, 0)
        ChangeMaxChild(243, -180004, 136000, 0)
end


在GM卷中,可以生怪,但如何知道怪物的編號?
SummonEventMonster不知有什麼用
243是地圖,可不可以用記錄玩家地圖,再放出來呢?
-180000應是白虎
136000是地點還是什麼?
5就是5隻
        SetWorldFlag("SummonEventMonster1", 5)
        ChangeMaxChild(243, -180000, 136000, 5)

發表於 2011-10-2 12:30:22 | 顯示全部樓層
ChangeMaxChild(243, -180000, 136000, 5)
243是mapid。。。-180000,136000是座標。。。5是怪物數量
==但是我更改了座標都那個座標都召喚不到怪
回復

使用道具 舉報

 樓主| 發表於 2011-10-2 12:32:48 | 顯示全部樓層
rudian 發表於 2011-10-2 12:30 PM
ChangeMaxChild(243, -180000, 136000, 5)
243是mapid。。。-180000,136000是座標。。。5是怪物數量
== ...

如果不改就召到?
回復

使用道具 舉報

發表於 2011-10-2 12:43:31 | 顯示全部樓層
rudian 發表於 2011-10-2 12:30 PM
ChangeMaxChild(243, -180000, 136000, 5)
243是mapid。。。-180000,136000是座標。。。5是怪物數量
== ...

-180000,136000   <---這個真的是座標嗎?

為什么有 -180001 -180002  ... 這些 1 2 3 呢? 
回復

使用道具 舉報

發表於 2011-10-2 12:44:28 | 顯示全部樓層
==不改在那個map的確是召喚得到。。。但是在別的map就不能
回復

使用道具 舉報

發表於 2011-10-2 12:45:32 | 顯示全部樓層
依我來看(243, -180000, 136000,是地圖座標的代碼來的
回復

使用道具 舉報

 樓主| 發表於 2011-10-2 12:52:22 | 顯示全部樓層
rudian 發表於 2011-10-2 12:45 PM
依我來看(243, -180000, 136000,是地圖座標的代碼來的

那你試試在GM卷中修改第一項
if GetChoice() == 1 then
        SetWorldFlag("SummonEventMonster1", 5)
        ChangeMaxChild(2, -26000, 145000, 5)
看看滄洲城有沒有出怪
回復

使用道具 舉報

發表於 2011-10-2 12:59:27 | 顯示全部樓層
沒有。。。我試過了
但是我有個疑問
  SetWorldFlag("SummonEventMonster1", 5)
SummonEventMonster1 怎樣知道是白虎呢

點評

所以我才想問 -180000 真的是座標那麼簡單  發表於 2011-10-2 13:06
回復

使用道具 舉報

 樓主| 發表於 2011-10-2 13:03:14 | 顯示全部樓層
rudian 發表於 2011-10-2 12:59 PM
沒有。。。我試過了
但是我有個疑問
  SetWorldFlag("SummonEventMonster1", 5)

跟次序,第一個是白虎,第2個朱雀,但實際上,也不知他在那設定了
回復

使用道具 舉報

發表於 2011-10-2 13:04:00 | 顯示全部樓層
vbnn20 發表於 2011-10-2 01:03 PM
跟次序,第一個是白虎,第2個朱雀,但實際上,也不知他在那設定了

SetWorldFlag << 這個好像是控制生成什么怪吧!
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|排行榜|幫助|希望國度

GMT+8, 2024-5-6 08:24 , Processed in 0.071585 second(s), 18 queries .

Theme Design By Tenny (希望國度)| Version: 10.0

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表