Junior Spellweaver
- Joined
- Dec 4, 2010
- Messages
- 156
- Reaction score
- 26
Topday i made a Stall and i tink how about to change the model wen you are in stall and i got the answer.Now i gonna share this whit all of you.
First of all Open:game_server\local\common\config\stall.lua or Open:game_server\local\mars\config\stall.lua
There will be someting like this:OpenFlag = 1 --°Ú̯ϵͳÊÇ·ñ¿ª·Å, 1 : ¿ª·Å, 0 : ¹Ø±Õ
MinStallLevel = 10 --°Ú̯×îСµÈ¼¶
CanBuyWhenStall = 0 --°Ú̯ʱÊÇ·ñÔÊÐí¹ºÂòÆäËü̯λµÄ¶«Î÷£¬1 : ÔÊÐí, 0 : ²»ÔÊÐí
MaxSloganTextSize = 24 --°Ú̯ÕÐÅƵÄ×î´ó×Ö½Ú³¤¶È
MaxStallTalkPageItemSize = 255 --ÁôÑÔ×î´ó×Ö½Ú³¤¶È
MaxStallTalkPageItemCount = 32 --×î´óÁôÑÔÌõÊý
StallArea = {2} --¿ÉÒÔ°Ú̯µÄÇøÓòId
MinStallInterval = 80 --°Ú̯×îС¼ä¸ô
function OnStallStateChanged(nUserId, nStallState, nLevel, nSex)
if nStallState == 1 then
if nLevel < 30 then
if nSex == 0 then
SetModel(nUserId, 5063)
else
SetModel(nUserId, 5064)
end
elseif nLevel >= 30 then
if nSex == 0 then
SetModel(nUserId, 5065)
else
SetModel(nUserId, 5066)
end
end
else
ResetModel(nUserId)
end
end
There Change what is write in red whit what model you want,you get the models in local/common/table/model.csv or model.dat depend on sever.
Then Change the files in client to.and is done
Thats all and ejoy your new Stall Models
First of all Open:game_server\local\common\config\stall.lua or Open:game_server\local\mars\config\stall.lua
There will be someting like this:OpenFlag = 1 --°Ú̯ϵͳÊÇ·ñ¿ª·Å, 1 : ¿ª·Å, 0 : ¹Ø±Õ
MinStallLevel = 10 --°Ú̯×îСµÈ¼¶
CanBuyWhenStall = 0 --°Ú̯ʱÊÇ·ñÔÊÐí¹ºÂòÆäËü̯λµÄ¶«Î÷£¬1 : ÔÊÐí, 0 : ²»ÔÊÐí
MaxSloganTextSize = 24 --°Ú̯ÕÐÅƵÄ×î´ó×Ö½Ú³¤¶È
MaxStallTalkPageItemSize = 255 --ÁôÑÔ×î´ó×Ö½Ú³¤¶È
MaxStallTalkPageItemCount = 32 --×î´óÁôÑÔÌõÊý
StallArea = {2} --¿ÉÒÔ°Ú̯µÄÇøÓòId
MinStallInterval = 80 --°Ú̯×îС¼ä¸ô
function OnStallStateChanged(nUserId, nStallState, nLevel, nSex)
if nStallState == 1 then
if nLevel < 30 then
if nSex == 0 then
SetModel(nUserId, 5063)
else
SetModel(nUserId, 5064)
end
elseif nLevel >= 30 then
if nSex == 0 then
SetModel(nUserId, 5065)
else
SetModel(nUserId, 5066)
end
end
else
ResetModel(nUserId)
end
end
There Change what is write in red whit what model you want,you get the models in local/common/table/model.csv or model.dat depend on sever.
Then Change the files in client to.and is done
Thats all and ejoy your new Stall Models
Last edited: