What's new

[8.1] help z npc

Status
Not open for further replies.

ospa

Active User
Joined
Apr 7, 2008
Messages
86
Reaction score
7
Jak w temacie , nie potrafi? robi? w?asnych npc i ich edytowa? , potrafi? zato kopiowa? ;p Czyje? pomys?y do mojego silnika :) mam pro?b? do kogo? kto lubi pomaga? innym mianowicie chodzi mi tu o poprawienie mi 1 npc , jest to npc do addon?w... Chodzi mi tu o 3 nowe addony ?e zamiast p?aci? mu 200 cc to aby wo?a? 200 demonic essence da?o by rad? takie co? zrobi?? :confused:

Z g?ry dzi?ki , spewno?ci? dam reputa je?eli b?d? m?g? ;))
 

ospa

Active User
Joined
Apr 7, 2008
Messages
86
Reaction score
7
Od?wie?am , oraz nadal potrzebuje tego npc :/
 

afgan1939

Advanced User
Joined
Apr 4, 2008
Messages
279
Reaction score
22
Age
84
wchodzimy w folder data\npc\scripts\addons.lua i szuakmy taki wpis

Code:
------------------------------------------------ addon ------------------------------------------------
elseif msgcontains(msg, 'first nightmare addon') then
if isPremium(cid) then
if player_money >= 2000000 then
selfSay('Did you bring me 200 cs?')
talk_state = 34
else
selfSay('I need 200 crystal coins, to give you the first Nightmare addon. Come back when you have them.')
talk_state = 0
end
else
selfSay(addon_need_premium)
talk_state = 0
end
------------------------------------------------ confirm yes ------------------------------------------------
elseif msgcontains(msg, 'yes') and talk_state == 34 then
talk_state = 0
if player_money >= 2000000 then
addon = getPlayerStorageValue(cid,150010)
if addon == -1 then
if pay(cid,2000000) then
selfSay(addon_give)
doPlayerAddAddon(cid, 269, 1)
doPlayerAddAddon(cid, 268, 1)
setPlayerStorageValue(cid,150010,1)
end
else
selfSay(addon_have_already)
end
else
selfSay(addon_have_not_items)
end
------------------------------------------------ addon ------------------------------------------------
elseif msgcontains(msg, 'second nightmare addon') then
if isPremium(cid) then
if player_money >= 2000000 then
selfSay('Did you bring me 200 cs?')
talk_state = 35
else
selfSay('I need 200 crystal coins, to give you the second Nightmare addon. Come back when you have them.')
talk_state = 0
end
else
selfSay(addon_need_premium)
talk_state = 0
end
------------------------------------------------ confirm yes ------------------------------------------------
elseif msgcontains(msg, 'yes') and talk_state == 35 then
talk_state = 0
if player_money >= 2000000 then
addon = getPlayerStorageValue(cid,150011)
if addon == -1 then
if pay(cid,2000000) then
selfSay(addon_give)
doPlayerAddAddon(cid, 269, 2)
doPlayerAddAddon(cid, 268, 2)
setPlayerStorageValue(cid,150011,1)
end
else
selfSay(addon_have_already)
end
else
selfSay(addon_have_not_items)
end
------------------------------------------------ addon ------------------------------------------------
elseif msgcontains(msg, 'first jester addon') then
if isPremium(cid) then
if player_money >= 2000000 then
selfSay('Did you bring me 200 cs?')
talk_state = 36
else
selfSay('I need 200 crystal coins, to give you the first Blazen addon. Come back when you have them.')
talk_state = 0
end
else
selfSay(addon_need_premium)
talk_state = 0
end
------------------------------------------------ confirm yes ------------------------------------------------
elseif msgcontains(msg, 'yes') and talk_state == 36 then
talk_state = 0
if player_money >= 2000000 then
addon = getPlayerStorageValue(cid,150012)
if addon == -1 then
if pay(cid,2000000) then
selfSay(addon_give)
doPlayerAddAddon(cid, 270, 1)
doPlayerAddAddon(cid, 273, 1)
setPlayerStorageValue(cid,150012,1)
end
else
selfSay(addon_have_already)
end
else
selfSay(addon_have_not_items)
end
------------------------------------------------ addon ------------------------------------------------
elseif msgcontains(msg, 'second jester addon') then
if isPremium(cid) then
if player_money >= 2000000 then
selfSay('Did you bring me 200 cs?')
talk_state = 37
else
selfSay('I need 200 crystal coins, to give you the second Jester addon. Come back when you have them.')
talk_state = 0
end
else
selfSay(addon_need_premium)
talk_state = 0
end
------------------------------------------------ confirm yes ------------------------------------------------
elseif msgcontains(msg, 'yes') and talk_state == 37 then
talk_state = 0
if player_money >= 2000000 then
addon = getPlayerStorageValue(cid,150013)
if addon == -1 then
if pay(cid,2000000) then
selfSay(addon_give)
doPlayerAddAddon(cid, 270, 2)
doPlayerAddAddon(cid, 273, 2)
setPlayerStorageValue(cid,150013,1)
end
else
selfSay(addon_have_already)
end
else
selfSay(addon_have_not_items)
end
------------------------------------------------ addon ------------------------------------------------
elseif msgcontains(msg, 'first brotherhood addon') then
if isPremium(cid) then
if player_money >= 2000000 then
selfSay('Did you bring me 200 cs?')
talk_state = 38
else
selfSay('I need 200 crystal coins, to give you the first Death addon. Come back when you have them.')
talk_state = 0
end
else
selfSay(addon_need_premium)
talk_state = 0
end
------------------------------------------------ confirm yes ------------------------------------------------
elseif msgcontains(msg, 'yes') and talk_state == 38 then
talk_state = 0
if player_money >= 2000000 then
addon = getPlayerStorageValue(cid,150014)
if addon == -1 then
if pay(cid,2000000) then
selfSay(addon_give)
doPlayerAddAddon(cid, 279, 1)
doPlayerAddAddon(cid, 278, 1)
setPlayerStorageValue(cid,150014,1)
end
else
selfSay(addon_have_already)
end
else
selfSay(addon_have_not_items)
end
------------------------------------------------ addon ------------------------------------------------
elseif msgcontains(msg, 'second brotherhood addon') then
if isPremium(cid) then
if player_money >= 2000000 then
selfSay('Did you bring me 2000000 cs?')
talk_state = 39
else
selfSay('I need 200 crystal coins, to give you the second Brotherhood addon. Come back when you have them.')
talk_state = 0
end
else
selfSay(addon_need_premium)
talk_state = 0
end
------------------------------------------------ confirm yes ------------------------------------------------
elseif msgcontains(msg, 'yes') and talk_state == 39 then
talk_state = 0
if player_money >= 2000000 then
addon = getPlayerStorageValue(cid,150015)
if addon == -1 then
if pay(cid,2000000) then
selfSay(addon_give)
doPlayerAddAddon(cid, 279, 2)
doPlayerAddAddon(cid, 278, 2)
setPlayerStorageValue(cid,150015,1)
end
else
selfSay(addon_have_already)
end
else
selfSay(addon_have_not_items)
end

i teraz wsz?dzie tam gdzie jest mowa o p?atno?ci kasa czyli money musisz podmieni? na zadany przedmiot b?d? walut?,

ty chcesz ?eby to by?y
Code:
200 demonic essence

wiec zamieniasz tekst
Code:
200 crystal coins
Code:
player_money >= 2000000
Code:
2000000 cs
na tekst z
Code:
200 demonic essence

mam nadzieje ze chocia? troch? pomog?em
 
Status
Not open for further replies.
Top