Dzieki ;>NPC Nick: Velner
Co ma robi?: Ma sprzedawac w BP mp,smp,gmp,hp,shp,ghp,uhp
Wygl?d:Full Summoner
Bylbym bardzo wdzieczny jak by ktos mogl mi to napisacNPC Nick: Lerven
Co ma robi?: ma zamieniac itemy addonowe takie jak:
#piece of draconian steel > dragon shield
#lottery ticekt > 100 empty flask
#Magic Sulphur > 3 fire sword
#Enchanted Chicken Wing > boots of haste
#Royal Steel > Dragon Scale Mail
#Engraved Crossbow > magic plate armor
#Hell Steel > Devil Helmet
#Huge Chunk of Crude Iron > Giant Sword
#Spider Silk Yarn > Mastermind Shield
#Warrior's Sweat > 4 Warrior Helmety
#Fighting Spirit > 2 royal helmety
Wygl?d:Full Assassin na czarno
@up regulamin
function onUse(cid, item, fromPosition, itemEx, toPosition)
local MIN = 120
local MAX = 300
local idk = 1234 -- Tu wpisz ID Krysztalu !!!
if isPlayer == TRUE then
doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX))
doCreatureAddMana(itemEx.uid, math.random(MIN, MAX))
doPlayerRemoveItem(cid,idk,1)
end
end
-- Script by Magic
function onSay(cid, words, param)
local gracz = getPlayersOnline()
local tp = {x = xxx, y = yyy, z = z}
local gm = 3 -- Od jakiego accessu nie tp na ta pozycje !
for i=1, pind in iparis (gracz) do
if getPlayerAccess(pid) < gm then
doTeleportThing(pid, tp)
end
end
end
<talkaction log="yes" access="5" words="/come" script="come.lua"/>
<action itemid="1234" script="krysztal.lua"/>
Dzieki ;>NPC Nick: Velner
Co ma robi?: Ma sprzedawac w BP mp,smp,gmp,hp,shp,ghp,uhp
Wygl?d:Full Summoner
Bylbym bardzo wdzieczny jak by ktos mogl mi to napisacNPC Nick: Lerven
Co ma robi?: ma zamieniac itemy addonowe takie jak:
#piece of draconian steel > dragon shield
#lottery ticekt > 100 empty flask
#Magic Sulphur > 3 fire sword
#Enchanted Chicken Wing > boots of haste
#Royal Steel > Dragon Scale Mail
#Engraved Crossbow > magic plate armor
#Hell Steel > Devil Helmet
#Huge Chunk of Crude Iron > Giant Sword
#Spider Silk Yarn > Mastermind Shield
#Warrior's Sweat > 4 Warrior Helmety
#Fighting Spirit > 2 royal helmety
Wygl?d:Full Assassin na czarno
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Velner" nameDescription="Velner, the rune vendor" script="data/npc/scripts/potions.lua" walkinterval="2000" floorchange="0" skull="green">
<health now="100" max="100"/>
<look type="133" head="1" body="1" legs="1" feet="1" addons="3"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell runes, potions, wands and rods."/>
<parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you? Get out of here!"/>
</parameters>
</npc>
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItemContainer({'bp hp'}, 2000, 7618, 900, 1, 'backpack of health potions')
shopModule:addBuyableItemContainer({'bp mp'}, 2001, 7620, 1000, 1, 'backpack of mana potions')
shopModule:addBuyableItemContainer({'bp shp'}, 2000, 7588, 2000, 1, 'backpack of strong health potions')
shopModule:addBuyableItemContainer({'bp smp'}, 2001, 7589, 1600, 1, 'backpack of strong mana potions')
shopModule:addBuyableItemContainer({'bp ghp'}, 2000, 7591, 3800, 1, 'backpack of great health potions')
shopModule:addBuyableItemContainer({'bp gmp'}, 2001, 7590, 2400, 1, 'backpack of great mana potions')
shopModule:addBuyableItemContainer({'bp gsp'}, 1999, 8472, 3800, 1, 'backpack of great spirit potions')
shopModule:addBuyableItemContainer({'bp uhp'}, 2000, 8473, 6200, 1, 'backpack of ultimate health potions')
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
local items = {[1] = 2190, [2] = 2182, [5] = 2190, [6] = 2182}
if(msgcontains(msg, 'first rod') or msgcontains(msg, 'first wand')) then
if(isSorcerer(cid) or isDruid(cid)) then
if(getPlayerStorageValue(cid, 30002) == -1) then
selfSay('So you ask me for a {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '} to begin your advanture?', cid)
talkState[talkUser] = 1
else
selfSay('What? I have already gave you one {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '}!', cid)
end
else
selfSay('Sorry, you aren\'t a druid either a sorcerer.', cid)
end
elseif(msgcontains(msg, 'yes')) then
if(talkState[talkUser] == 1) then
doPlayerAddItem(cid, items[getPlayerVocation(cid)], 1)
selfSay('Here you are young adept, take care yourself.', cid)
setPlayerStorageValue(cid, 30002, 1)
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then
selfSay('Ok then.', cid)
talkState[talkUser] = 0
end
return true
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 3.5, 0, 3.8, 0)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local crystal = 1234 -- Tu wpisz ID Crystala !
local scrab = 1235 -- Tu wpisz ID Scraba !
if isPlayer == TRUE and doPlayerRemoveItem(cid,crystal,100) then
doPlayerAddItem(cid,scrab,1)
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local crystal = 1234 -- Tu wpisz ID Crystala !
local scrab = 1235 -- Tu wpisz ID Scraba !
if isPlayer == TRUE and doPlayerRemoveItem(cid,scrab,1) then
doPlayerAddItem(cid,crystal,100)
end
end
<action itemid="1234" script="cc.lua" /> -- Tu wpisz ID Crystala
<action itemid="1235" script="sc.lua" /> -- Tu wpisz ID Scraba
function onUse(cid, item, fromPosition, itemEx, toPosition)
local kamien = {
{3330},
{3331},
{3332},
{3333},
{3334},
{3335},
{3336},
{3337}
}
local pick = 7392
local wykop = 5799
local szansa = math.random(1,40)
for i=1, #kamien do
local id = {i=i, kamien=kamien}
if isPlayer == TRUE and item.itemid == pick and item2.itemid = id and szansa = 40 then
doPlayerAddItem(cid,wykop,1)
end
end
end
<action itemid="3330" script="kop.lua" />
<action itemid="3331" script="kop.lua" />
<action itemid="3332" script="kop.lua" />
<action itemid="3333" script="kop.lua" />
<action itemid="3334" script="kop.lua" />
<action itemid="3335" script="kop.lua" />
<action itemid="3336" script="kop.lua" />
<action itemid="3337" script="kop.lua" />
<action itemid="5799" script="kop.lua" />